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

Side by Side Diff: src/arm/code-stubs-arm.cc

Issue 9187003: Merge r10380, r10381 from the bleeding_edge to the 3.7 branch. (Closed) Base URL: http://v8.googlecode.com/svn/branches/3.7/
Patch Set: Created 8 years, 11 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 | « no previous file | src/arm/lithium-codegen-arm.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 3971 matching lines...) Expand 10 before | Expand all | Expand 10 after
3982 ASSERT(!ReturnTrueFalseObject() || HasCallSiteInlineCheck()); 3982 ASSERT(!ReturnTrueFalseObject() || HasCallSiteInlineCheck());
3983 3983
3984 // Fixed register usage throughout the stub: 3984 // Fixed register usage throughout the stub:
3985 const Register object = r0; // Object (lhs). 3985 const Register object = r0; // Object (lhs).
3986 Register map = r3; // Map of the object. 3986 Register map = r3; // Map of the object.
3987 const Register function = r1; // Function (rhs). 3987 const Register function = r1; // Function (rhs).
3988 const Register prototype = r4; // Prototype of the function. 3988 const Register prototype = r4; // Prototype of the function.
3989 const Register inline_site = r9; 3989 const Register inline_site = r9;
3990 const Register scratch = r2; 3990 const Register scratch = r2;
3991 3991
3992 const int32_t kDeltaToLoadBoolResult = 3 * kPointerSize; 3992 const int32_t kDeltaToLoadBoolResult = 4 * kPointerSize;
3993 3993
3994 Label slow, loop, is_instance, is_not_instance, not_js_object; 3994 Label slow, loop, is_instance, is_not_instance, not_js_object;
3995 3995
3996 if (!HasArgsInRegisters()) { 3996 if (!HasArgsInRegisters()) {
3997 __ ldr(object, MemOperand(sp, 1 * kPointerSize)); 3997 __ ldr(object, MemOperand(sp, 1 * kPointerSize));
3998 __ ldr(function, MemOperand(sp, 0)); 3998 __ ldr(function, MemOperand(sp, 0));
3999 } 3999 }
4000 4000
4001 // Check that the left hand is a JS object and load map. 4001 // Check that the left hand is a JS object and load map.
4002 __ JumpIfSmi(object, &not_js_object); 4002 __ JumpIfSmi(object, &not_js_object);
(...skipping 30 matching lines...) Expand all
4033 } else { 4033 } else {
4034 ASSERT(HasArgsInRegisters()); 4034 ASSERT(HasArgsInRegisters());
4035 // Patch the (relocated) inlined map check. 4035 // Patch the (relocated) inlined map check.
4036 4036
4037 // The offset was stored in r4 safepoint slot. 4037 // The offset was stored in r4 safepoint slot.
4038 // (See LCodeGen::DoDeferredLInstanceOfKnownGlobal) 4038 // (See LCodeGen::DoDeferredLInstanceOfKnownGlobal)
4039 __ LoadFromSafepointRegisterSlot(scratch, r4); 4039 __ LoadFromSafepointRegisterSlot(scratch, r4);
4040 __ sub(inline_site, lr, scratch); 4040 __ sub(inline_site, lr, scratch);
4041 // Get the map location in scratch and patch it. 4041 // Get the map location in scratch and patch it.
4042 __ GetRelocatedValueLocation(inline_site, scratch); 4042 __ GetRelocatedValueLocation(inline_site, scratch);
4043 __ str(map, MemOperand(scratch)); 4043 __ ldr(scratch, MemOperand(scratch));
4044 __ str(map, FieldMemOperand(scratch, JSGlobalPropertyCell::kValueOffset));
4044 } 4045 }
4045 4046
4046 // Register mapping: r3 is object map and r4 is function prototype. 4047 // Register mapping: r3 is object map and r4 is function prototype.
4047 // Get prototype of object into r2. 4048 // Get prototype of object into r2.
4048 __ ldr(scratch, FieldMemOperand(map, Map::kPrototypeOffset)); 4049 __ ldr(scratch, FieldMemOperand(map, Map::kPrototypeOffset));
4049 4050
4050 // We don't need map any more. Use it as a scratch register. 4051 // We don't need map any more. Use it as a scratch register.
4051 Register scratch2 = map; 4052 Register scratch2 = map;
4052 map = no_reg; 4053 map = no_reg;
4053 4054
(...skipping 3194 matching lines...) Expand 10 before | Expand all | Expand 10 after
7248 __ StoreNumberToDoubleElements(r0, r3, r1, r5, r6, r7, r9, r10, 7249 __ StoreNumberToDoubleElements(r0, r3, r1, r5, r6, r7, r9, r10,
7249 &slow_elements); 7250 &slow_elements);
7250 __ Ret(); 7251 __ Ret();
7251 } 7252 }
7252 7253
7253 #undef __ 7254 #undef __
7254 7255
7255 } } // namespace v8::internal 7256 } } // namespace v8::internal
7256 7257
7257 #endif // V8_TARGET_ARCH_ARM 7258 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/arm/lithium-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698