Changeset 55401 in webkit for trunk/JavaScriptCore/runtime/RegExpConstructor.cpp
- Timestamp:
- Mar 2, 2010, 12:20:48 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/runtime/RegExpConstructor.cpp
r55262 r55401 36 36 namespace JSC { 37 37 38 static JSValue regExpConstructorInput(ExecState*, const Identifier&, const PropertySlot&);39 static JSValue regExpConstructorMultiline(ExecState*, const Identifier&, const PropertySlot&);40 static JSValue regExpConstructorLastMatch(ExecState*, const Identifier&, const PropertySlot&);41 static JSValue regExpConstructorLastParen(ExecState*, const Identifier&, const PropertySlot&);42 static JSValue regExpConstructorLeftContext(ExecState*, const Identifier&, const PropertySlot&);43 static JSValue regExpConstructorRightContext(ExecState*, const Identifier&, const PropertySlot&);44 static JSValue regExpConstructorDollar1(ExecState*, const Identifier&, const PropertySlot&);45 static JSValue regExpConstructorDollar2(ExecState*, const Identifier&, const PropertySlot&);46 static JSValue regExpConstructorDollar3(ExecState*, const Identifier&, const PropertySlot&);47 static JSValue regExpConstructorDollar4(ExecState*, const Identifier&, const PropertySlot&);48 static JSValue regExpConstructorDollar5(ExecState*, const Identifier&, const PropertySlot&);49 static JSValue regExpConstructorDollar6(ExecState*, const Identifier&, const PropertySlot&);50 static JSValue regExpConstructorDollar7(ExecState*, const Identifier&, const PropertySlot&);51 static JSValue regExpConstructorDollar8(ExecState*, const Identifier&, const PropertySlot&);52 static JSValue regExpConstructorDollar9(ExecState*, const Identifier&, const PropertySlot&);38 static JSValue regExpConstructorInput(ExecState*, JSValue, const Identifier&); 39 static JSValue regExpConstructorMultiline(ExecState*, JSValue, const Identifier&); 40 static JSValue regExpConstructorLastMatch(ExecState*, JSValue, const Identifier&); 41 static JSValue regExpConstructorLastParen(ExecState*, JSValue, const Identifier&); 42 static JSValue regExpConstructorLeftContext(ExecState*, JSValue, const Identifier&); 43 static JSValue regExpConstructorRightContext(ExecState*, JSValue, const Identifier&); 44 static JSValue regExpConstructorDollar1(ExecState*, JSValue, const Identifier&); 45 static JSValue regExpConstructorDollar2(ExecState*, JSValue, const Identifier&); 46 static JSValue regExpConstructorDollar3(ExecState*, JSValue, const Identifier&); 47 static JSValue regExpConstructorDollar4(ExecState*, JSValue, const Identifier&); 48 static JSValue regExpConstructorDollar5(ExecState*, JSValue, const Identifier&); 49 static JSValue regExpConstructorDollar6(ExecState*, JSValue, const Identifier&); 50 static JSValue regExpConstructorDollar7(ExecState*, JSValue, const Identifier&); 51 static JSValue regExpConstructorDollar8(ExecState*, JSValue, const Identifier&); 52 static JSValue regExpConstructorDollar9(ExecState*, JSValue, const Identifier&); 53 53 54 54 static void setRegExpConstructorInput(ExecState*, JSObject*, JSValue); … … 196 196 } 197 197 198 JSValue regExpConstructorDollar1(ExecState* exec, const Identifier&, const PropertySlot& slot)199 { 200 return asRegExpConstructor(slot .slotBase())->getBackref(exec, 1);201 } 202 203 JSValue regExpConstructorDollar2(ExecState* exec, const Identifier&, const PropertySlot& slot)204 { 205 return asRegExpConstructor(slot .slotBase())->getBackref(exec, 2);206 } 207 208 JSValue regExpConstructorDollar3(ExecState* exec, const Identifier&, const PropertySlot& slot)209 { 210 return asRegExpConstructor(slot .slotBase())->getBackref(exec, 3);211 } 212 213 JSValue regExpConstructorDollar4(ExecState* exec, const Identifier&, const PropertySlot& slot)214 { 215 return asRegExpConstructor(slot .slotBase())->getBackref(exec, 4);216 } 217 218 JSValue regExpConstructorDollar5(ExecState* exec, const Identifier&, const PropertySlot& slot)219 { 220 return asRegExpConstructor(slot .slotBase())->getBackref(exec, 5);221 } 222 223 JSValue regExpConstructorDollar6(ExecState* exec, const Identifier&, const PropertySlot& slot)224 { 225 return asRegExpConstructor(slot .slotBase())->getBackref(exec, 6);226 } 227 228 JSValue regExpConstructorDollar7(ExecState* exec, const Identifier&, const PropertySlot& slot)229 { 230 return asRegExpConstructor(slot .slotBase())->getBackref(exec, 7);231 } 232 233 JSValue regExpConstructorDollar8(ExecState* exec, const Identifier&, const PropertySlot& slot)234 { 235 return asRegExpConstructor(slot .slotBase())->getBackref(exec, 8);236 } 237 238 JSValue regExpConstructorDollar9(ExecState* exec, const Identifier&, const PropertySlot& slot)239 { 240 return asRegExpConstructor(slot .slotBase())->getBackref(exec, 9);241 } 242 243 JSValue regExpConstructorInput(ExecState* exec, const Identifier&, const PropertySlot& slot)244 { 245 return jsString(exec, asRegExpConstructor(slot .slotBase())->input());246 } 247 248 JSValue regExpConstructorMultiline(ExecState*, const Identifier&, const PropertySlot& slot)249 { 250 return jsBoolean(asRegExpConstructor(slot .slotBase())->multiline());251 } 252 253 JSValue regExpConstructorLastMatch(ExecState* exec, const Identifier&, const PropertySlot& slot)254 { 255 return asRegExpConstructor(slot .slotBase())->getBackref(exec, 0);256 } 257 258 JSValue regExpConstructorLastParen(ExecState* exec, const Identifier&, const PropertySlot& slot)259 { 260 return asRegExpConstructor(slot .slotBase())->getLastParen(exec);261 } 262 263 JSValue regExpConstructorLeftContext(ExecState* exec, const Identifier&, const PropertySlot& slot)264 { 265 return asRegExpConstructor(slot .slotBase())->getLeftContext(exec);266 } 267 268 JSValue regExpConstructorRightContext(ExecState* exec, const Identifier&, const PropertySlot& slot)269 { 270 return asRegExpConstructor(slot .slotBase())->getRightContext(exec);198 JSValue regExpConstructorDollar1(ExecState* exec, JSValue slotBase, const Identifier&) 199 { 200 return asRegExpConstructor(slotBase)->getBackref(exec, 1); 201 } 202 203 JSValue regExpConstructorDollar2(ExecState* exec, JSValue slotBase, const Identifier&) 204 { 205 return asRegExpConstructor(slotBase)->getBackref(exec, 2); 206 } 207 208 JSValue regExpConstructorDollar3(ExecState* exec, JSValue slotBase, const Identifier&) 209 { 210 return asRegExpConstructor(slotBase)->getBackref(exec, 3); 211 } 212 213 JSValue regExpConstructorDollar4(ExecState* exec, JSValue slotBase, const Identifier&) 214 { 215 return asRegExpConstructor(slotBase)->getBackref(exec, 4); 216 } 217 218 JSValue regExpConstructorDollar5(ExecState* exec, JSValue slotBase, const Identifier&) 219 { 220 return asRegExpConstructor(slotBase)->getBackref(exec, 5); 221 } 222 223 JSValue regExpConstructorDollar6(ExecState* exec, JSValue slotBase, const Identifier&) 224 { 225 return asRegExpConstructor(slotBase)->getBackref(exec, 6); 226 } 227 228 JSValue regExpConstructorDollar7(ExecState* exec, JSValue slotBase, const Identifier&) 229 { 230 return asRegExpConstructor(slotBase)->getBackref(exec, 7); 231 } 232 233 JSValue regExpConstructorDollar8(ExecState* exec, JSValue slotBase, const Identifier&) 234 { 235 return asRegExpConstructor(slotBase)->getBackref(exec, 8); 236 } 237 238 JSValue regExpConstructorDollar9(ExecState* exec, JSValue slotBase, const Identifier&) 239 { 240 return asRegExpConstructor(slotBase)->getBackref(exec, 9); 241 } 242 243 JSValue regExpConstructorInput(ExecState* exec, JSValue slotBase, const Identifier&) 244 { 245 return jsString(exec, asRegExpConstructor(slotBase)->input()); 246 } 247 248 JSValue regExpConstructorMultiline(ExecState*, JSValue slotBase, const Identifier&) 249 { 250 return jsBoolean(asRegExpConstructor(slotBase)->multiline()); 251 } 252 253 JSValue regExpConstructorLastMatch(ExecState* exec, JSValue slotBase, const Identifier&) 254 { 255 return asRegExpConstructor(slotBase)->getBackref(exec, 0); 256 } 257 258 JSValue regExpConstructorLastParen(ExecState* exec, JSValue slotBase, const Identifier&) 259 { 260 return asRegExpConstructor(slotBase)->getLastParen(exec); 261 } 262 263 JSValue regExpConstructorLeftContext(ExecState* exec, JSValue slotBase, const Identifier&) 264 { 265 return asRegExpConstructor(slotBase)->getLeftContext(exec); 266 } 267 268 JSValue regExpConstructorRightContext(ExecState* exec, JSValue slotBase, const Identifier&) 269 { 270 return asRegExpConstructor(slotBase)->getRightContext(exec); 271 271 } 272 272
Note:
See TracChangeset
for help on using the changeset viewer.