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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: src/stub-cache.cc
diff --git a/src/stub-cache.cc b/src/stub-cache.cc
index d7a47e32023ce61435e8d20b208535d4cdb31c28..692859666f6d6cebcedf08ddb7bfe45ddbb766b1 100644
--- a/src/stub-cache.cc
+++ b/src/stub-cache.cc
@@ -850,10 +850,10 @@ Handle<Code> NamedLoadHandlerCompiler::CompileLoadField(
}
-Handle<Code> NamedLoadHandlerCompiler::CompileLoadConstant(
- Handle<Name> name, Handle<Object> value) {
- Frontend(receiver(), name);
- GenerateLoadConstant(value);
+Handle<Code> NamedLoadHandlerCompiler::CompileLoadConstant(Handle<Name> name,
+ int constant_index) {
+ Register reg = Frontend(receiver(), name);
+ GenerateLoadConstant(reg, constant_index);
return GetCode(kind(), Code::FAST, name);
}
« 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