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

Side by Side Diff: src/stub-cache.cc

Issue 442763002: Load constants from the DescriptorArray (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 4 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
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 #include "src/api.h" 7 #include "src/api.h"
8 #include "src/arguments.h" 8 #include "src/arguments.h"
9 #include "src/ast.h" 9 #include "src/ast.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 832 matching lines...) Expand 10 before | Expand all | Expand 10 after
843 843
844 844
845 Handle<Code> NamedLoadHandlerCompiler::CompileLoadField( 845 Handle<Code> NamedLoadHandlerCompiler::CompileLoadField(
846 Handle<Name> name, FieldIndex field, Representation representation) { 846 Handle<Name> name, FieldIndex field, Representation representation) {
847 Register reg = Frontend(receiver(), name); 847 Register reg = Frontend(receiver(), name);
848 GenerateLoadField(reg, field, representation); 848 GenerateLoadField(reg, field, representation);
849 return GetCode(kind(), Code::FAST, name); 849 return GetCode(kind(), Code::FAST, name);
850 } 850 }
851 851
852 852
853 Handle<Code> NamedLoadHandlerCompiler::CompileLoadConstant( 853 Handle<Code> NamedLoadHandlerCompiler::CompileLoadConstant(Handle<Name> name,
854 Handle<Name> name, Handle<Object> value) { 854 int constant_index) {
855 Frontend(receiver(), name); 855 Register reg = Frontend(receiver(), name);
856 GenerateLoadConstant(value); 856 GenerateLoadConstant(reg, constant_index);
857 return GetCode(kind(), Code::FAST, name); 857 return GetCode(kind(), Code::FAST, name);
858 } 858 }
859 859
860 860
861 Handle<Code> NamedLoadHandlerCompiler::CompileLoadNonexistent( 861 Handle<Code> NamedLoadHandlerCompiler::CompileLoadNonexistent(
862 Handle<Name> name) { 862 Handle<Name> name) {
863 Label miss; 863 Label miss;
864 NonexistentFrontendHeader(name, &miss, scratch2(), scratch3()); 864 NonexistentFrontendHeader(name, &miss, scratch2(), scratch3());
865 GenerateLoadConstant(isolate()->factory()->undefined_value()); 865 GenerateLoadConstant(isolate()->factory()->undefined_value());
866 FrontendFooter(name, &miss); 866 FrontendFooter(name, &miss);
(...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after
1285 Handle<FunctionTemplateInfo>( 1285 Handle<FunctionTemplateInfo>(
1286 FunctionTemplateInfo::cast(signature->receiver())); 1286 FunctionTemplateInfo::cast(signature->receiver()));
1287 } 1287 }
1288 } 1288 }
1289 1289
1290 is_simple_api_call_ = true; 1290 is_simple_api_call_ = true;
1291 } 1291 }
1292 1292
1293 1293
1294 } } // namespace v8::internal 1294 } } // namespace v8::internal
OLDNEW
« src/ia32/stub-cache-ia32.cc ('K') | « src/stub-cache.h ('k') | src/x64/stub-cache-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698