Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: src/ia32/full-codegen-ia32.cc

Issue 561913002: Class syntax parsing (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Add early error checks for static prototype and get/set constructor Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/hydrogen.cc ('k') | src/messages.js » ('j') | src/preparser.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/hydrogen.cc ('k') | src/messages.js » ('j') | src/preparser.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698