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/ast.h" | 10 #include "src/ast/ast.h" |
(...skipping 519 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
530 F(DebugIsActive) \ | 530 F(DebugIsActive) \ |
531 F(GetOrdinaryHasInstance) \ | 531 F(GetOrdinaryHasInstance) \ |
532 F(CreateIterResultObject) | 532 F(CreateIterResultObject) |
533 | 533 |
534 #define GENERATOR_DECLARATION(Name) void Emit##Name(CallRuntime* call); | 534 #define GENERATOR_DECLARATION(Name) void Emit##Name(CallRuntime* call); |
535 FOR_EACH_FULL_CODE_INTRINSIC(GENERATOR_DECLARATION) | 535 FOR_EACH_FULL_CODE_INTRINSIC(GENERATOR_DECLARATION) |
536 #undef GENERATOR_DECLARATION | 536 #undef GENERATOR_DECLARATION |
537 | 537 |
538 void EmitIntrinsicAsStubCall(CallRuntime* expr, const Callable& callable); | 538 void EmitIntrinsicAsStubCall(CallRuntime* expr, const Callable& callable); |
539 | 539 |
| 540 // Emits call to respective code stub. |
| 541 void EmitHasProperty(); |
| 542 |
| 543 // Platform-specific code for restoring context from current JS frame. |
| 544 void RestoreContext(); |
| 545 |
540 // Platform-specific code for loading variables. | 546 // Platform-specific code for loading variables. |
541 void EmitLoadGlobalCheckExtensions(VariableProxy* proxy, | 547 void EmitLoadGlobalCheckExtensions(VariableProxy* proxy, |
542 TypeofMode typeof_mode, Label* slow); | 548 TypeofMode typeof_mode, Label* slow); |
543 MemOperand ContextSlotOperandCheckExtensions(Variable* var, Label* slow); | 549 MemOperand ContextSlotOperandCheckExtensions(Variable* var, Label* slow); |
544 void EmitDynamicLookupFastCase(VariableProxy* proxy, TypeofMode typeof_mode, | 550 void EmitDynamicLookupFastCase(VariableProxy* proxy, TypeofMode typeof_mode, |
545 Label* slow, Label* done); | 551 Label* slow, Label* done); |
546 void EmitGlobalVariableLoad(VariableProxy* proxy, TypeofMode typeof_mode); | 552 void EmitGlobalVariableLoad(VariableProxy* proxy, TypeofMode typeof_mode); |
547 void EmitVariableLoad(VariableProxy* proxy, | 553 void EmitVariableLoad(VariableProxy* proxy, |
548 TypeofMode typeof_mode = NOT_INSIDE_TYPEOF); | 554 TypeofMode typeof_mode = NOT_INSIDE_TYPEOF); |
549 | 555 |
(...skipping 499 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1049 Address start_; | 1055 Address start_; |
1050 Address instruction_start_; | 1056 Address instruction_start_; |
1051 uint32_t length_; | 1057 uint32_t length_; |
1052 }; | 1058 }; |
1053 | 1059 |
1054 | 1060 |
1055 } // namespace internal | 1061 } // namespace internal |
1056 } // namespace v8 | 1062 } // namespace v8 |
1057 | 1063 |
1058 #endif // V8_FULL_CODEGEN_FULL_CODEGEN_H_ | 1064 #endif // V8_FULL_CODEGEN_FULL_CODEGEN_H_ |
OLD | NEW |