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

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

Issue 356713003: Use IC register definitions in platform files. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: nits. Created 6 years, 5 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/x64/lithium-x64.cc ('k') | no next file » | 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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_X64 7 #if V8_TARGET_ARCH_X64
8 8
9 #include "src/arguments.h" 9 #include "src/arguments.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 1380 matching lines...) Expand 10 before | Expand all | Expand 10 after
1391 #define __ ACCESS_MASM(masm) 1391 #define __ ACCESS_MASM(masm)
1392 1392
1393 1393
1394 void KeyedLoadStubCompiler::GenerateLoadDictionaryElement( 1394 void KeyedLoadStubCompiler::GenerateLoadDictionaryElement(
1395 MacroAssembler* masm) { 1395 MacroAssembler* masm) {
1396 // ----------- S t a t e ------------- 1396 // ----------- S t a t e -------------
1397 // -- rax : key 1397 // -- rax : key
1398 // -- rdx : receiver 1398 // -- rdx : receiver
1399 // -- rsp[0] : return address 1399 // -- rsp[0] : return address
1400 // ----------------------------------- 1400 // -----------------------------------
1401 ASSERT(rdx.is(KeyedLoadIC::ReceiverRegister()));
1402 ASSERT(rax.is(KeyedLoadIC::NameRegister()));
1401 Label slow, miss; 1403 Label slow, miss;
1402 1404
1403 // This stub is meant to be tail-jumped to, the receiver must already 1405 // This stub is meant to be tail-jumped to, the receiver must already
1404 // have been verified by the caller to not be a smi. 1406 // have been verified by the caller to not be a smi.
1405 1407
1406 __ JumpIfNotSmi(rax, &miss); 1408 __ JumpIfNotSmi(rax, &miss);
1407 __ SmiToInteger32(rbx, rax); 1409 __ SmiToInteger32(rbx, rax);
1408 __ movp(rcx, FieldOperand(rdx, JSObject::kElementsOffset)); 1410 __ movp(rcx, FieldOperand(rdx, JSObject::kElementsOffset));
1409 1411
1410 // Check whether the elements is a number dictionary. 1412 // Check whether the elements is a number dictionary.
(...skipping 20 matching lines...) Expand all
1431 // ----------------------------------- 1433 // -----------------------------------
1432 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); 1434 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss);
1433 } 1435 }
1434 1436
1435 1437
1436 #undef __ 1438 #undef __
1437 1439
1438 } } // namespace v8::internal 1440 } } // namespace v8::internal
1439 1441
1440 #endif // V8_TARGET_ARCH_X64 1442 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/lithium-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698