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

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

Issue 458008: Fixed register usage in 64-bit version of... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years 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 | 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 360 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 // to check this explicitly since this generic stub does not perform 371 // to check this explicitly since this generic stub does not perform
372 // map checks. The map is already in rdx. 372 // map checks. The map is already in rdx.
373 __ testb(FieldOperand(rdx, Map::kBitFieldOffset), 373 __ testb(FieldOperand(rdx, Map::kBitFieldOffset),
374 Immediate(1 << Map::kIsAccessCheckNeeded)); 374 Immediate(1 << Map::kIsAccessCheckNeeded));
375 __ j(not_zero, &slow); 375 __ j(not_zero, &slow);
376 376
377 // Check that the elements array is the appropriate type of 377 // Check that the elements array is the appropriate type of
378 // ExternalArray. 378 // ExternalArray.
379 // rax: index (as a smi) 379 // rax: index (as a smi)
380 // rcx: JSObject 380 // rcx: JSObject
381 __ movq(rcx, FieldOperand(rdx, JSObject::kElementsOffset)); 381 __ movq(rcx, FieldOperand(rcx, JSObject::kElementsOffset));
382 __ CompareRoot(FieldOperand(rcx, HeapObject::kMapOffset), 382 __ CompareRoot(FieldOperand(rcx, HeapObject::kMapOffset),
383 Heap::RootIndexForExternalArrayType(array_type)); 383 Heap::RootIndexForExternalArrayType(array_type));
384 __ j(not_equal, &slow); 384 __ j(not_equal, &slow);
385 385
386 // Check that the index is in range. 386 // Check that the index is in range.
387 __ SmiToInteger32(rax, rax); 387 __ SmiToInteger32(rax, rax);
388 __ cmpl(rax, FieldOperand(rcx, ExternalArray::kLengthOffset)); 388 __ cmpl(rax, FieldOperand(rcx, ExternalArray::kLengthOffset));
389 // Unsigned comparison catches both negative and too-large values. 389 // Unsigned comparison catches both negative and too-large values.
390 __ j(above_equal, &slow); 390 __ j(above_equal, &slow);
391 391
(...skipping 920 matching lines...) Expand 10 before | Expand all | Expand 10 after
1312 1312
1313 // Cache miss: Jump to runtime. 1313 // Cache miss: Jump to runtime.
1314 Generate(masm, ExternalReference(IC_Utility(kStoreIC_Miss))); 1314 Generate(masm, ExternalReference(IC_Utility(kStoreIC_Miss)));
1315 } 1315 }
1316 1316
1317 1317
1318 #undef __ 1318 #undef __
1319 1319
1320 1320
1321 } } // namespace v8::internal 1321 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698