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/stub-cache-arm.cc

Issue 9694040: Merged r11022 into 3.7 branch. (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.7
Patch Set: Created 8 years, 9 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/ia32/stub-cache-ia32.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 1309 matching lines...) Expand 10 before | Expand all | Expand 10 after
1320 Handle<String> name, 1320 Handle<String> name,
1321 Label* miss) { 1321 Label* miss) {
1322 ASSERT(holder->IsGlobalObject()); 1322 ASSERT(holder->IsGlobalObject());
1323 1323
1324 // Get the number of arguments. 1324 // Get the number of arguments.
1325 const int argc = arguments().immediate(); 1325 const int argc = arguments().immediate();
1326 1326
1327 // Get the receiver from the stack. 1327 // Get the receiver from the stack.
1328 __ ldr(r0, MemOperand(sp, argc * kPointerSize)); 1328 __ ldr(r0, MemOperand(sp, argc * kPointerSize));
1329 1329
1330 // If the object is the holder then we know that it's a global
1331 // object which can only happen for contextual calls. In this case,
1332 // the receiver cannot be a smi.
1333 if (!object.is_identical_to(holder)) {
1334 __ JumpIfSmi(r0, miss);
1335 }
1336
1337 // Check that the maps haven't changed. 1330 // Check that the maps haven't changed.
1331 __ JumpIfSmi(r0, miss);
1338 CheckPrototypes(object, r0, holder, r3, r1, r4, name, miss); 1332 CheckPrototypes(object, r0, holder, r3, r1, r4, name, miss);
1339 } 1333 }
1340 1334
1341 1335
1342 void CallStubCompiler::GenerateLoadFunctionFromCell( 1336 void CallStubCompiler::GenerateLoadFunctionFromCell(
1343 Handle<JSGlobalPropertyCell> cell, 1337 Handle<JSGlobalPropertyCell> cell,
1344 Handle<JSFunction> function, 1338 Handle<JSFunction> function,
1345 Label* miss) { 1339 Label* miss) {
1346 // Get the value from the cell. 1340 // Get the value from the cell.
1347 __ mov(r3, Operand(cell)); 1341 __ mov(r3, Operand(cell));
(...skipping 1380 matching lines...) Expand 10 before | Expand all | Expand 10 after
2728 Handle<JSGlobalPropertyCell> cell, 2722 Handle<JSGlobalPropertyCell> cell,
2729 Handle<String> name, 2723 Handle<String> name,
2730 bool is_dont_delete) { 2724 bool is_dont_delete) {
2731 // ----------- S t a t e ------------- 2725 // ----------- S t a t e -------------
2732 // -- r0 : receiver 2726 // -- r0 : receiver
2733 // -- r2 : name 2727 // -- r2 : name
2734 // -- lr : return address 2728 // -- lr : return address
2735 // ----------------------------------- 2729 // -----------------------------------
2736 Label miss; 2730 Label miss;
2737 2731
2738 // If the object is the holder then we know that it's a global
2739 // object which can only happen for contextual calls. In this case,
2740 // the receiver cannot be a smi.
2741 if (!object.is_identical_to(holder)) {
2742 __ JumpIfSmi(r0, &miss);
2743 }
2744
2745 // Check that the map of the global has not changed. 2732 // Check that the map of the global has not changed.
2733 __ JumpIfSmi(r0, &miss);
2746 CheckPrototypes(object, r0, holder, r3, r4, r1, name, &miss); 2734 CheckPrototypes(object, r0, holder, r3, r4, r1, name, &miss);
2747 2735
2748 // Get the value from the cell. 2736 // Get the value from the cell.
2749 __ mov(r3, Operand(cell)); 2737 __ mov(r3, Operand(cell));
2750 __ ldr(r4, FieldMemOperand(r3, JSGlobalPropertyCell::kValueOffset)); 2738 __ ldr(r4, FieldMemOperand(r3, JSGlobalPropertyCell::kValueOffset));
2751 2739
2752 // Check for deleted property if property can actually be deleted. 2740 // Check for deleted property if property can actually be deleted.
2753 if (!is_dont_delete) { 2741 if (!is_dont_delete) {
2754 __ LoadRoot(ip, Heap::kTheHoleValueRootIndex); 2742 __ LoadRoot(ip, Heap::kTheHoleValueRootIndex);
2755 __ cmp(r4, ip); 2743 __ cmp(r4, ip);
(...skipping 1470 matching lines...) Expand 10 before | Expand all | Expand 10 after
4226 Handle<Code> ic_miss = masm->isolate()->builtins()->KeyedStoreIC_Miss(); 4214 Handle<Code> ic_miss = masm->isolate()->builtins()->KeyedStoreIC_Miss();
4227 __ Jump(ic_miss, RelocInfo::CODE_TARGET); 4215 __ Jump(ic_miss, RelocInfo::CODE_TARGET);
4228 } 4216 }
4229 4217
4230 4218
4231 #undef __ 4219 #undef __
4232 4220
4233 } } // namespace v8::internal 4221 } } // namespace v8::internal
4234 4222
4235 #endif // V8_TARGET_ARCH_ARM 4223 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/ia32/stub-cache-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698