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 #include "src/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #if V8_TARGET_ARCH_IA32 | 7 #if V8_TARGET_ARCH_IA32 |
8 | 8 |
9 #include "src/code-stubs.h" | 9 #include "src/code-stubs.h" |
10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
(...skipping 843 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
854 __ push(Immediate(variable->name())); | 854 __ push(Immediate(variable->name())); |
855 __ push(Immediate(Smi::FromInt(NONE))); | 855 __ push(Immediate(Smi::FromInt(NONE))); |
856 VisitForStackValue(declaration->fun()); | 856 VisitForStackValue(declaration->fun()); |
857 __ CallRuntime(Runtime::kDeclareLookupSlot, 4); | 857 __ CallRuntime(Runtime::kDeclareLookupSlot, 4); |
858 break; | 858 break; |
859 } | 859 } |
860 } | 860 } |
861 } | 861 } |
862 | 862 |
863 | 863 |
| 864 void FullCodeGenerator::VisitClassDeclaration(ClassDeclaration* declaration) { |
| 865 VariableProxy* proxy = declaration->proxy(); |
| 866 Variable* variable = proxy->var(); |
| 867 |
| 868 USE(variable); |
| 869 } |
| 870 |
| 871 |
864 void FullCodeGenerator::VisitModuleDeclaration(ModuleDeclaration* declaration) { | 872 void FullCodeGenerator::VisitModuleDeclaration(ModuleDeclaration* declaration) { |
865 Variable* variable = declaration->proxy()->var(); | 873 Variable* variable = declaration->proxy()->var(); |
866 DCHECK(variable->location() == Variable::CONTEXT); | 874 DCHECK(variable->location() == Variable::CONTEXT); |
867 DCHECK(variable->interface()->IsFrozen()); | 875 DCHECK(variable->interface()->IsFrozen()); |
868 | 876 |
869 Comment cmnt(masm_, "[ ModuleDeclaration"); | 877 Comment cmnt(masm_, "[ ModuleDeclaration"); |
870 EmitDebugCheckDeclarationContext(variable); | 878 EmitDebugCheckDeclarationContext(variable); |
871 | 879 |
872 // Load instance object. | 880 // Load instance object. |
873 __ LoadContext(eax, scope_->ContextChainLength(scope_->GlobalScope())); | 881 __ LoadContext(eax, scope_->ContextChainLength(scope_->GlobalScope())); |
(...skipping 3950 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4824 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), | 4832 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), |
4825 Assembler::target_address_at(call_target_address, | 4833 Assembler::target_address_at(call_target_address, |
4826 unoptimized_code)); | 4834 unoptimized_code)); |
4827 return OSR_AFTER_STACK_CHECK; | 4835 return OSR_AFTER_STACK_CHECK; |
4828 } | 4836 } |
4829 | 4837 |
4830 | 4838 |
4831 } } // namespace v8::internal | 4839 } } // namespace v8::internal |
4832 | 4840 |
4833 #endif // V8_TARGET_ARCH_IA32 | 4841 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |