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

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

Issue 9691049: Merged r11022 into 3.8 branch. (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.8
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 | « src/ia32/stub-cache-ia32.cc ('k') | src/version.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 1325 matching lines...) Expand 10 before | Expand all | Expand 10 after
1336 Handle<String> name, 1336 Handle<String> name,
1337 Label* miss) { 1337 Label* miss) {
1338 ASSERT(holder->IsGlobalObject()); 1338 ASSERT(holder->IsGlobalObject());
1339 1339
1340 // Get the number of arguments. 1340 // Get the number of arguments.
1341 const int argc = arguments().immediate(); 1341 const int argc = arguments().immediate();
1342 1342
1343 // Get the receiver from the stack. 1343 // Get the receiver from the stack.
1344 __ lw(a0, MemOperand(sp, argc * kPointerSize)); 1344 __ lw(a0, MemOperand(sp, argc * kPointerSize));
1345 1345
1346 // If the object is the holder then we know that it's a global
1347 // object which can only happen for contextual calls. In this case,
1348 // the receiver cannot be a smi.
1349 if (!object.is_identical_to(holder)) {
1350 __ JumpIfSmi(a0, miss);
1351 }
1352
1353 // Check that the maps haven't changed. 1346 // Check that the maps haven't changed.
1347 __ JumpIfSmi(a0, miss);
1354 CheckPrototypes(object, a0, holder, a3, a1, t0, name, miss); 1348 CheckPrototypes(object, a0, holder, a3, a1, t0, name, miss);
1355 } 1349 }
1356 1350
1357 1351
1358 void CallStubCompiler::GenerateLoadFunctionFromCell( 1352 void CallStubCompiler::GenerateLoadFunctionFromCell(
1359 Handle<JSGlobalPropertyCell> cell, 1353 Handle<JSGlobalPropertyCell> cell,
1360 Handle<JSFunction> function, 1354 Handle<JSFunction> function,
1361 Label* miss) { 1355 Label* miss) {
1362 // Get the value from the cell. 1356 // Get the value from the cell.
1363 __ li(a3, Operand(cell)); 1357 __ li(a3, Operand(cell));
(...skipping 1377 matching lines...) Expand 10 before | Expand all | Expand 10 after
2741 Handle<JSGlobalPropertyCell> cell, 2735 Handle<JSGlobalPropertyCell> cell,
2742 Handle<String> name, 2736 Handle<String> name,
2743 bool is_dont_delete) { 2737 bool is_dont_delete) {
2744 // ----------- S t a t e ------------- 2738 // ----------- S t a t e -------------
2745 // -- a0 : receiver 2739 // -- a0 : receiver
2746 // -- a2 : name 2740 // -- a2 : name
2747 // -- ra : return address 2741 // -- ra : return address
2748 // ----------------------------------- 2742 // -----------------------------------
2749 Label miss; 2743 Label miss;
2750 2744
2751 // If the object is the holder then we know that it's a global
2752 // object which can only happen for contextual calls. In this case,
2753 // the receiver cannot be a smi.
2754 if (!object.is_identical_to(holder)) {
2755 __ JumpIfSmi(a0, &miss);
2756 }
2757
2758 // Check that the map of the global has not changed. 2745 // Check that the map of the global has not changed.
2746 __ JumpIfSmi(a0, &miss);
2759 CheckPrototypes(object, a0, holder, a3, t0, a1, name, &miss); 2747 CheckPrototypes(object, a0, holder, a3, t0, a1, name, &miss);
2760 2748
2761 // Get the value from the cell. 2749 // Get the value from the cell.
2762 __ li(a3, Operand(cell)); 2750 __ li(a3, Operand(cell));
2763 __ lw(t0, FieldMemOperand(a3, JSGlobalPropertyCell::kValueOffset)); 2751 __ lw(t0, FieldMemOperand(a3, JSGlobalPropertyCell::kValueOffset));
2764 2752
2765 // Check for deleted property if property can actually be deleted. 2753 // Check for deleted property if property can actually be deleted.
2766 if (!is_dont_delete) { 2754 if (!is_dont_delete) {
2767 __ LoadRoot(at, Heap::kTheHoleValueRootIndex); 2755 __ LoadRoot(at, Heap::kTheHoleValueRootIndex);
2768 __ Branch(&miss, eq, t0, Operand(at)); 2756 __ Branch(&miss, eq, t0, Operand(at));
(...skipping 1529 matching lines...) Expand 10 before | Expand all | Expand 10 after
4298 Handle<Code> ic_miss = masm->isolate()->builtins()->KeyedStoreIC_Miss(); 4286 Handle<Code> ic_miss = masm->isolate()->builtins()->KeyedStoreIC_Miss();
4299 __ Jump(ic_miss, RelocInfo::CODE_TARGET); 4287 __ Jump(ic_miss, RelocInfo::CODE_TARGET);
4300 } 4288 }
4301 4289
4302 4290
4303 #undef __ 4291 #undef __
4304 4292
4305 } } // namespace v8::internal 4293 } } // namespace v8::internal
4306 4294
4307 #endif // V8_TARGET_ARCH_MIPS 4295 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/ia32/stub-cache-ia32.cc ('k') | src/version.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698