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

Side by Side Diff: src/x64/ic-x64.cc

Issue 524058: Fix x64 and arm build. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Fix x64 and arm build. Created 10 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 | « src/arm/ic-arm.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 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 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 390 matching lines...) Expand 10 before | Expand all | Expand 10 after
401 ASSERT(TenToThe(String::kMaxCachedArrayIndexLength) < 401 ASSERT(TenToThe(String::kMaxCachedArrayIndexLength) <
402 (1 << String::kArrayIndexValueBits)); 402 (1 << String::kArrayIndexValueBits));
403 __ bind(&index_string); 403 __ bind(&index_string);
404 __ movl(rax, rbx); 404 __ movl(rax, rbx);
405 __ and_(rax, Immediate(String::kArrayIndexHashMask)); 405 __ and_(rax, Immediate(String::kArrayIndexHashMask));
406 __ shrl(rax, Immediate(String::kHashShift)); 406 __ shrl(rax, Immediate(String::kHashShift));
407 __ jmp(&index_int); 407 __ jmp(&index_int);
408 } 408 }
409 409
410 410
411 void KeyedLoadIC::GenerateString(MacroAssembler* masm) {
412 // ----------- S t a t e -------------
413 // -- rsp[0] : return address
414 // -- rsp[8] : name
415 // -- rsp[16] : receiver
416 // -----------------------------------
417 GenerateGeneric(masm);
418 }
419
420
411 void KeyedLoadIC::GenerateExternalArray(MacroAssembler* masm, 421 void KeyedLoadIC::GenerateExternalArray(MacroAssembler* masm,
412 ExternalArrayType array_type) { 422 ExternalArrayType array_type) {
413 // ----------- S t a t e ------------- 423 // ----------- S t a t e -------------
414 // -- rsp[0] : return address 424 // -- rsp[0] : return address
415 // -- rsp[8] : name 425 // -- rsp[8] : name
416 // -- rsp[16] : receiver 426 // -- rsp[16] : receiver
417 // ----------------------------------- 427 // -----------------------------------
418 Label slow, failed_allocation; 428 Label slow, failed_allocation;
419 429
420 // Load name and receiver. 430 // Load name and receiver.
(...skipping 952 matching lines...) Expand 10 before | Expand all | Expand 10 after
1373 1383
1374 // Cache miss: Jump to runtime. 1384 // Cache miss: Jump to runtime.
1375 Generate(masm, ExternalReference(IC_Utility(kStoreIC_Miss))); 1385 Generate(masm, ExternalReference(IC_Utility(kStoreIC_Miss)));
1376 } 1386 }
1377 1387
1378 1388
1379 #undef __ 1389 #undef __
1380 1390
1381 1391
1382 } } // namespace v8::internal 1392 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/ic-arm.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698