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

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

Issue 16109018: Fix serialization tests and Mac build (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 6 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/lithium-codegen-ia32.cc ('k') | src/ia32/stub-cache-ia32.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 2478 matching lines...) Expand 10 before | Expand all | Expand 10 after
2489 ASSERT(reg_code >= 0 && reg_code < kNumSafepointRegisters); 2489 ASSERT(reg_code >= 0 && reg_code < kNumSafepointRegisters);
2490 return kNumSafepointRegisters - reg_code - 1; 2490 return kNumSafepointRegisters - reg_code - 1;
2491 } 2491 }
2492 2492
2493 2493
2494 void MacroAssembler::LoadHeapObject(Register result, 2494 void MacroAssembler::LoadHeapObject(Register result,
2495 Handle<HeapObject> object) { 2495 Handle<HeapObject> object) {
2496 AllowDeferredHandleDereference embedding_raw_address; 2496 AllowDeferredHandleDereference embedding_raw_address;
2497 if (isolate()->heap()->InNewSpace(*object)) { 2497 if (isolate()->heap()->InNewSpace(*object)) {
2498 Handle<Cell> cell = isolate()->factory()->NewCell(object); 2498 Handle<Cell> cell = isolate()->factory()->NewCell(object);
2499 mov(result, Operand::Cell(cell)); 2499 mov(result, Operand::ForCell(cell));
2500 } else { 2500 } else {
2501 mov(result, object); 2501 mov(result, object);
2502 } 2502 }
2503 } 2503 }
2504 2504
2505 2505
2506 void MacroAssembler::CmpHeapObject(Register reg, Handle<HeapObject> object) { 2506 void MacroAssembler::CmpHeapObject(Register reg, Handle<HeapObject> object) {
2507 AllowDeferredHandleDereference using_raw_address; 2507 AllowDeferredHandleDereference using_raw_address;
2508 if (isolate()->heap()->InNewSpace(*object)) { 2508 if (isolate()->heap()->InNewSpace(*object)) {
2509 Handle<Cell> cell = isolate()->factory()->NewCell(object); 2509 Handle<Cell> cell = isolate()->factory()->NewCell(object);
2510 cmp(reg, Operand::Cell(cell)); 2510 cmp(reg, Operand::ForCell(cell));
2511 } else { 2511 } else {
2512 cmp(reg, object); 2512 cmp(reg, object);
2513 } 2513 }
2514 } 2514 }
2515 2515
2516 2516
2517 void MacroAssembler::PushHeapObject(Handle<HeapObject> object) { 2517 void MacroAssembler::PushHeapObject(Handle<HeapObject> object) {
2518 AllowDeferredHandleDereference using_raw_address; 2518 AllowDeferredHandleDereference using_raw_address;
2519 if (isolate()->heap()->InNewSpace(*object)) { 2519 if (isolate()->heap()->InNewSpace(*object)) {
2520 Handle<Cell> cell = isolate()->factory()->NewCell(object); 2520 Handle<Cell> cell = isolate()->factory()->NewCell(object);
2521 push(Operand::Cell(cell)); 2521 push(Operand::ForCell(cell));
2522 } else { 2522 } else {
2523 Push(object); 2523 Push(object);
2524 } 2524 }
2525 } 2525 }
2526 2526
2527 2527
2528 void MacroAssembler::Ret() { 2528 void MacroAssembler::Ret() {
2529 ret(0); 2529 ret(0);
2530 } 2530 }
2531 2531
(...skipping 616 matching lines...) Expand 10 before | Expand all | Expand 10 after
3148 j(greater, &no_info_available); 3148 j(greater, &no_info_available);
3149 cmp(MemOperand(scratch_reg, -AllocationSiteInfo::kSize), 3149 cmp(MemOperand(scratch_reg, -AllocationSiteInfo::kSize),
3150 Immediate(Handle<Map>(isolate()->heap()->allocation_site_info_map()))); 3150 Immediate(Handle<Map>(isolate()->heap()->allocation_site_info_map())));
3151 bind(&no_info_available); 3151 bind(&no_info_available);
3152 } 3152 }
3153 3153
3154 3154
3155 } } // namespace v8::internal 3155 } } // namespace v8::internal
3156 3156
3157 #endif // V8_TARGET_ARCH_IA32 3157 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/lithium-codegen-ia32.cc ('k') | src/ia32/stub-cache-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698