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

Side by Side Diff: src/mips/stub-cache-mips.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 | « 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 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 1330 matching lines...) Expand 10 before | Expand all | Expand 10 after
1341 Handle<String> name, 1341 Handle<String> name,
1342 Label* miss) { 1342 Label* miss) {
1343 ASSERT(holder->IsGlobalObject()); 1343 ASSERT(holder->IsGlobalObject());
1344 1344
1345 // Get the number of arguments. 1345 // Get the number of arguments.
1346 const int argc = arguments().immediate(); 1346 const int argc = arguments().immediate();
1347 1347
1348 // Get the receiver from the stack. 1348 // Get the receiver from the stack.
1349 __ lw(a0, MemOperand(sp, argc * kPointerSize)); 1349 __ lw(a0, MemOperand(sp, argc * kPointerSize));
1350 1350
1351 // If the object is the holder then we know that it's a global
1352 // object which can only happen for contextual calls. In this case,
1353 // the receiver cannot be a smi.
1354 if (!object.is_identical_to(holder)) {
1355 __ JumpIfSmi(a0, miss);
1356 }
1357
1358 // Check that the maps haven't changed. 1351 // Check that the maps haven't changed.
1352 __ JumpIfSmi(a0, miss);
1359 CheckPrototypes(object, a0, holder, a3, a1, t0, name, miss); 1353 CheckPrototypes(object, a0, holder, a3, a1, t0, name, miss);
1360 } 1354 }
1361 1355
1362 1356
1363 void CallStubCompiler::GenerateLoadFunctionFromCell( 1357 void CallStubCompiler::GenerateLoadFunctionFromCell(
1364 Handle<JSGlobalPropertyCell> cell, 1358 Handle<JSGlobalPropertyCell> cell,
1365 Handle<JSFunction> function, 1359 Handle<JSFunction> function,
1366 Label* miss) { 1360 Label* miss) {
1367 // Get the value from the cell. 1361 // Get the value from the cell.
1368 __ li(a3, Operand(cell)); 1362 __ li(a3, Operand(cell));
(...skipping 1379 matching lines...) Expand 10 before | Expand all | Expand 10 after
2748 Handle<JSGlobalPropertyCell> cell, 2742 Handle<JSGlobalPropertyCell> cell,
2749 Handle<String> name, 2743 Handle<String> name,
2750 bool is_dont_delete) { 2744 bool is_dont_delete) {
2751 // ----------- S t a t e ------------- 2745 // ----------- S t a t e -------------
2752 // -- a0 : receiver 2746 // -- a0 : receiver
2753 // -- a2 : name 2747 // -- a2 : name
2754 // -- ra : return address 2748 // -- ra : return address
2755 // ----------------------------------- 2749 // -----------------------------------
2756 Label miss; 2750 Label miss;
2757 2751
2758 // If the object is the holder then we know that it's a global
2759 // object which can only happen for contextual calls. In this case,
2760 // the receiver cannot be a smi.
2761 if (!object.is_identical_to(holder)) {
2762 __ JumpIfSmi(a0, &miss);
2763 }
2764
2765 // Check that the map of the global has not changed. 2752 // Check that the map of the global has not changed.
2753 __ JumpIfSmi(a0, &miss);
2766 CheckPrototypes(object, a0, holder, a3, t0, a1, name, &miss); 2754 CheckPrototypes(object, a0, holder, a3, t0, a1, name, &miss);
2767 2755
2768 // Get the value from the cell. 2756 // Get the value from the cell.
2769 __ li(a3, Operand(cell)); 2757 __ li(a3, Operand(cell));
2770 __ lw(t0, FieldMemOperand(a3, JSGlobalPropertyCell::kValueOffset)); 2758 __ lw(t0, FieldMemOperand(a3, JSGlobalPropertyCell::kValueOffset));
2771 2759
2772 // Check for deleted property if property can actually be deleted. 2760 // Check for deleted property if property can actually be deleted.
2773 if (!is_dont_delete) { 2761 if (!is_dont_delete) {
2774 __ LoadRoot(at, Heap::kTheHoleValueRootIndex); 2762 __ LoadRoot(at, Heap::kTheHoleValueRootIndex);
2775 __ Branch(&miss, eq, t0, Operand(at)); 2763 __ Branch(&miss, eq, t0, Operand(at));
(...skipping 1529 matching lines...) Expand 10 before | Expand all | Expand 10 after
4305 Handle<Code> ic_miss = masm->isolate()->builtins()->KeyedStoreIC_Miss(); 4293 Handle<Code> ic_miss = masm->isolate()->builtins()->KeyedStoreIC_Miss();
4306 __ Jump(ic_miss, RelocInfo::CODE_TARGET); 4294 __ Jump(ic_miss, RelocInfo::CODE_TARGET);
4307 } 4295 }
4308 4296
4309 4297
4310 #undef __ 4298 #undef __
4311 4299
4312 } } // namespace v8::internal 4300 } } // namespace v8::internal
4313 4301
4314 #endif // V8_TARGET_ARCH_MIPS 4302 #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