OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_FULL_CODEGEN_FULL_CODEGEN_H_ | 5 #ifndef V8_FULL_CODEGEN_FULL_CODEGEN_H_ |
6 #define V8_FULL_CODEGEN_FULL_CODEGEN_H_ | 6 #define V8_FULL_CODEGEN_FULL_CODEGEN_H_ |
7 | 7 |
8 #include "src/allocation.h" | 8 #include "src/allocation.h" |
9 #include "src/assert-scope.h" | 9 #include "src/assert-scope.h" |
10 #include "src/ast.h" | 10 #include "src/ast.h" |
11 #include "src/bit-vector.h" | 11 #include "src/bit-vector.h" |
| 12 #include "src/code-factory.h" |
12 #include "src/code-stubs.h" | 13 #include "src/code-stubs.h" |
13 #include "src/codegen.h" | 14 #include "src/codegen.h" |
14 #include "src/compiler.h" | 15 #include "src/compiler.h" |
15 #include "src/globals.h" | 16 #include "src/globals.h" |
16 #include "src/objects.h" | 17 #include "src/objects.h" |
17 #include "src/scopes.h" | 18 #include "src/scopes.h" |
18 | 19 |
19 namespace v8 { | 20 namespace v8 { |
20 namespace internal { | 21 namespace internal { |
21 | 22 |
(...skipping 500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
522 F(ToNumber) \ | 523 F(ToNumber) \ |
523 F(ToName) \ | 524 F(ToName) \ |
524 F(ToObject) \ | 525 F(ToObject) \ |
525 F(DebugIsActive) \ | 526 F(DebugIsActive) \ |
526 F(CreateIterResultObject) | 527 F(CreateIterResultObject) |
527 | 528 |
528 #define GENERATOR_DECLARATION(Name) void Emit##Name(CallRuntime* call); | 529 #define GENERATOR_DECLARATION(Name) void Emit##Name(CallRuntime* call); |
529 FOR_EACH_FULL_CODE_INTRINSIC(GENERATOR_DECLARATION) | 530 FOR_EACH_FULL_CODE_INTRINSIC(GENERATOR_DECLARATION) |
530 #undef GENERATOR_DECLARATION | 531 #undef GENERATOR_DECLARATION |
531 | 532 |
| 533 void EmitIntrinsicAsStubCall(CallRuntime* expr, const Callable& callable); |
| 534 |
532 // Platform-specific code for resuming generators. | 535 // Platform-specific code for resuming generators. |
533 void EmitGeneratorResume(Expression *generator, | 536 void EmitGeneratorResume(Expression *generator, |
534 Expression *value, | 537 Expression *value, |
535 JSGeneratorObject::ResumeMode resume_mode); | 538 JSGeneratorObject::ResumeMode resume_mode); |
536 | 539 |
537 // Platform-specific code for loading variables. | 540 // Platform-specific code for loading variables. |
538 void EmitLoadGlobalCheckExtensions(VariableProxy* proxy, | 541 void EmitLoadGlobalCheckExtensions(VariableProxy* proxy, |
539 TypeofMode typeof_mode, Label* slow); | 542 TypeofMode typeof_mode, Label* slow); |
540 MemOperand ContextSlotOperandCheckExtensions(Variable* var, Label* slow); | 543 MemOperand ContextSlotOperandCheckExtensions(Variable* var, Label* slow); |
541 void EmitDynamicLookupFastCase(VariableProxy* proxy, TypeofMode typeof_mode, | 544 void EmitDynamicLookupFastCase(VariableProxy* proxy, TypeofMode typeof_mode, |
(...skipping 517 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1059 Address start_; | 1062 Address start_; |
1060 Address instruction_start_; | 1063 Address instruction_start_; |
1061 uint32_t length_; | 1064 uint32_t length_; |
1062 }; | 1065 }; |
1063 | 1066 |
1064 | 1067 |
1065 } // namespace internal | 1068 } // namespace internal |
1066 } // namespace v8 | 1069 } // namespace v8 |
1067 | 1070 |
1068 #endif // V8_FULL_CODEGEN_FULL_CODEGEN_H_ | 1071 #endif // V8_FULL_CODEGEN_FULL_CODEGEN_H_ |
OLD | NEW |