OLD | NEW |
1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
387 void EmitReturnSequence(); | 387 void EmitReturnSequence(); |
388 | 388 |
389 // Platform-specific code sequences for calls | 389 // Platform-specific code sequences for calls |
390 void EmitCallWithStub(Call* expr); | 390 void EmitCallWithStub(Call* expr); |
391 void EmitCallWithIC(Call* expr, Handle<Object> name, RelocInfo::Mode mode); | 391 void EmitCallWithIC(Call* expr, Handle<Object> name, RelocInfo::Mode mode); |
392 void EmitKeyedCallWithIC(Call* expr, Expression* key, RelocInfo::Mode mode); | 392 void EmitKeyedCallWithIC(Call* expr, Expression* key, RelocInfo::Mode mode); |
393 | 393 |
394 | 394 |
395 // Platform-specific code for inline runtime calls. | 395 // Platform-specific code for inline runtime calls. |
396 void EmitInlineRuntimeCall(CallRuntime* expr); | 396 void EmitInlineRuntimeCall(CallRuntime* expr); |
397 void EmitIsSmi(ZoneList<Expression*>* arguments); | 397 |
398 void EmitIsNonNegativeSmi(ZoneList<Expression*>* arguments); | 398 #define EMIT_INLINE_RUNTIME_CALL(name, x, y) \ |
399 void EmitIsObject(ZoneList<Expression*>* arguments); | 399 void Emit##name(ZoneList<Expression*>* arguments); |
400 void EmitIsSpecObject(ZoneList<Expression*>* arguments); | 400 INLINE_RUNTIME_FUNCTION_LIST(EMIT_INLINE_RUNTIME_CALL) |
401 void EmitIsUndetectableObject(ZoneList<Expression*>* arguments); | 401 #undef EMIT_INLINE_RUNTIME_CALL |
402 void EmitIsFunction(ZoneList<Expression*>* arguments); | |
403 void EmitIsArray(ZoneList<Expression*>* arguments); | |
404 void EmitIsRegExp(ZoneList<Expression*>* arguments); | |
405 void EmitIsConstructCall(ZoneList<Expression*>* arguments); | |
406 void EmitIsStringWrapperSafeForDefaultValueOf( | |
407 ZoneList<Expression*>* arguments); | |
408 void EmitObjectEquals(ZoneList<Expression*>* arguments); | |
409 void EmitArguments(ZoneList<Expression*>* arguments); | |
410 void EmitArgumentsLength(ZoneList<Expression*>* arguments); | |
411 void EmitClassOf(ZoneList<Expression*>* arguments); | |
412 void EmitValueOf(ZoneList<Expression*>* arguments); | |
413 void EmitSetValueOf(ZoneList<Expression*>* arguments); | |
414 void EmitNumberToString(ZoneList<Expression*>* arguments); | |
415 void EmitStringCharFromCode(ZoneList<Expression*>* arguments); | |
416 void EmitStringCharCodeAt(ZoneList<Expression*>* arguments); | |
417 void EmitStringCharAt(ZoneList<Expression*>* arguments); | |
418 void EmitStringCompare(ZoneList<Expression*>* arguments); | |
419 void EmitStringAdd(ZoneList<Expression*>* arguments); | |
420 void EmitLog(ZoneList<Expression*>* arguments); | |
421 void EmitRandomHeapNumber(ZoneList<Expression*>* arguments); | |
422 void EmitSubString(ZoneList<Expression*>* arguments); | |
423 void EmitRegExpExec(ZoneList<Expression*>* arguments); | |
424 void EmitMathPow(ZoneList<Expression*>* arguments); | |
425 void EmitMathSin(ZoneList<Expression*>* arguments); | |
426 void EmitMathCos(ZoneList<Expression*>* arguments); | |
427 void EmitMathSqrt(ZoneList<Expression*>* arguments); | |
428 void EmitCallFunction(ZoneList<Expression*>* arguments); | |
429 void EmitRegExpConstructResult(ZoneList<Expression*>* arguments); | |
430 void EmitSwapElements(ZoneList<Expression*>* arguments); | |
431 void EmitGetFromCache(ZoneList<Expression*>* arguments); | |
432 void EmitIsRegExpEquivalent(ZoneList<Expression*>* arguments); | |
433 | 402 |
434 // Platform-specific code for loading variables. | 403 // Platform-specific code for loading variables. |
435 void EmitVariableLoad(Variable* expr, Expression::Context context); | 404 void EmitVariableLoad(Variable* expr, Expression::Context context); |
436 | 405 |
437 // Platform-specific support for allocating a new closure based on | 406 // Platform-specific support for allocating a new closure based on |
438 // the given function info. | 407 // the given function info. |
439 void EmitNewClosure(Handle<SharedFunctionInfo> info); | 408 void EmitNewClosure(Handle<SharedFunctionInfo> info); |
440 | 409 |
441 // Platform-specific support for compiling assignments. | 410 // Platform-specific support for compiling assignments. |
442 | 411 |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
537 | 506 |
538 friend class NestedStatement; | 507 friend class NestedStatement; |
539 | 508 |
540 DISALLOW_COPY_AND_ASSIGN(FullCodeGenerator); | 509 DISALLOW_COPY_AND_ASSIGN(FullCodeGenerator); |
541 }; | 510 }; |
542 | 511 |
543 | 512 |
544 } } // namespace v8::internal | 513 } } // namespace v8::internal |
545 | 514 |
546 #endif // V8_FULL_CODEGEN_H_ | 515 #endif // V8_FULL_CODEGEN_H_ |
OLD | NEW |