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

Unified Diff: src/arm/stub-cache-arm.cc

Issue 8111006: Allow new-space JSFunction objects as constant-function properties. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 years, 2 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/arm/stub-cache-arm.cc
===================================================================
--- src/arm/stub-cache-arm.cc (revision 9574)
+++ src/arm/stub-cache-arm.cc (working copy)
@@ -580,7 +580,7 @@
// -----------------------------------
// Get the function and setup the context.
JSFunction* function = optimization.constant_function();
- __ mov(r5, Operand(Handle<JSFunction>(function)));
+ __ LoadHeapObject(r5, Handle<JSFunction>(function));
__ ldr(cp, FieldMemOperand(r5, JSFunction::kContextOffset));
// Pass the additional arguments FastHandleApiCall expects.
@@ -1195,7 +1195,7 @@
Register scratch1,
Register scratch2,
Register scratch3,
- Object* value,
+ JSFunction* value,
String* name,
Label* miss) {
// Check that the receiver isn't a smi.
@@ -1206,7 +1206,7 @@
miss);
// Return the constant value.
- __ mov(r0, Operand(Handle<Object>(value)));
+ __ LoadHeapObject(r0, Handle<JSFunction>(value));
__ Ret();
}
@@ -2880,7 +2880,7 @@
MaybeObject* LoadStubCompiler::CompileLoadConstant(JSObject* object,
JSObject* holder,
- Object* value,
+ JSFunction* value,
String* name) {
// ----------- S t a t e -------------
// -- r0 : receiver
@@ -3031,7 +3031,7 @@
MaybeObject* KeyedLoadStubCompiler::CompileLoadConstant(String* name,
JSObject* receiver,
JSObject* holder,
- Object* value) {
+ JSFunction* value) {
// ----------- S t a t e -------------
// -- lr : return address
// -- r0 : key

Powered by Google App Engine
This is Rietveld 408576698