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

Side by Side Diff: src/x64/macro-assembler-x64.cc

Issue 7535004: Merge bleeding edge up to 8774 into the GC branch. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/gc/
Patch Set: Created 9 years, 4 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') | src/x64/regexp-macro-assembler-x64.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 386 matching lines...) Expand 10 before | Expand all | Expand 10 after
397 } 397 }
398 398
399 399
400 void MacroAssembler::AssertFastElements(Register elements) { 400 void MacroAssembler::AssertFastElements(Register elements) {
401 if (emit_debug_code()) { 401 if (emit_debug_code()) {
402 Label ok; 402 Label ok;
403 CompareRoot(FieldOperand(elements, HeapObject::kMapOffset), 403 CompareRoot(FieldOperand(elements, HeapObject::kMapOffset),
404 Heap::kFixedArrayMapRootIndex); 404 Heap::kFixedArrayMapRootIndex);
405 j(equal, &ok, Label::kNear); 405 j(equal, &ok, Label::kNear);
406 CompareRoot(FieldOperand(elements, HeapObject::kMapOffset), 406 CompareRoot(FieldOperand(elements, HeapObject::kMapOffset),
407 Heap::kFixedDoubleArrayMapRootIndex);
408 j(equal, &ok, Label::kNear);
409 CompareRoot(FieldOperand(elements, HeapObject::kMapOffset),
407 Heap::kFixedCOWArrayMapRootIndex); 410 Heap::kFixedCOWArrayMapRootIndex);
408 j(equal, &ok, Label::kNear); 411 j(equal, &ok, Label::kNear);
409 Abort("JSObject with fast elements map has slow elements"); 412 Abort("JSObject with fast elements map has slow elements");
410 bind(&ok); 413 bind(&ok);
411 } 414 }
412 } 415 }
413 416
414 417
415 void MacroAssembler::Check(Condition cc, const char* msg) { 418 void MacroAssembler::Check(Condition cc, const char* msg) {
416 Label L; 419 Label L;
(...skipping 3603 matching lines...) Expand 10 before | Expand all | Expand 10 after
4020 movq(rcx, addr_reg); 4023 movq(rcx, addr_reg);
4021 shrl(rcx, Immediate(kPointerSizeLog2)); 4024 shrl(rcx, Immediate(kPointerSizeLog2));
4022 and_(rcx, Immediate((1 << Bitmap::kBitsPerCellLog2) - 1)); 4025 and_(rcx, Immediate((1 << Bitmap::kBitsPerCellLog2) - 1));
4023 movl(mask_reg, Immediate(1)); 4026 movl(mask_reg, Immediate(1));
4024 shl_cl(mask_reg); 4027 shl_cl(mask_reg);
4025 } 4028 }
4026 4029
4027 } } // namespace v8::internal 4030 } } // namespace v8::internal
4028 4031
4029 #endif // V8_TARGET_ARCH_X64 4032 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/lithium-x64.cc ('k') | src/x64/regexp-macro-assembler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698