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

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

Issue 8344079: Shave 39% from snapshot size. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 years, 2 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/code-stubs-ia32.cc ('k') | src/mips/builtins-mips.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 334 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 push(Immediate(x.x_ ^ jit_cookie())); 345 push(Immediate(x.x_ ^ jit_cookie()));
346 xor_(Operand(esp, 0), Immediate(jit_cookie())); 346 xor_(Operand(esp, 0), Immediate(jit_cookie()));
347 } else { 347 } else {
348 push(x); 348 push(x);
349 } 349 }
350 } 350 }
351 351
352 352
353 void MacroAssembler::CompareRoot(Register with, Heap::RootListIndex index) { 353 void MacroAssembler::CompareRoot(Register with, Heap::RootListIndex index) {
354 // see ROOT_ACCESSOR macro in factory.h 354 // see ROOT_ACCESSOR macro in factory.h
355 Handle<Object> value(&isolate()->heap()->roots_address()[index]); 355 Handle<Object> value(&isolate()->heap()->roots_array_start()[index]);
356 cmp(with, value); 356 cmp(with, value);
357 } 357 }
358 358
359 359
360 void MacroAssembler::CmpObjectType(Register heap_object, 360 void MacroAssembler::CmpObjectType(Register heap_object,
361 InstanceType type, 361 InstanceType type,
362 Register map) { 362 Register map) {
363 mov(map, FieldOperand(heap_object, HeapObject::kMapOffset)); 363 mov(map, FieldOperand(heap_object, HeapObject::kMapOffset));
364 CmpInstanceType(map, type); 364 CmpInstanceType(map, type);
365 } 365 }
(...skipping 2368 matching lines...) Expand 10 before | Expand all | Expand 10 after
2734 cmp(length, Operand(bitmap_scratch, MemoryChunk::kSizeOffset)); 2734 cmp(length, Operand(bitmap_scratch, MemoryChunk::kSizeOffset));
2735 Check(less_equal, "Live Bytes Count overflow chunk size"); 2735 Check(less_equal, "Live Bytes Count overflow chunk size");
2736 } 2736 }
2737 2737
2738 bind(&done); 2738 bind(&done);
2739 } 2739 }
2740 2740
2741 } } // namespace v8::internal 2741 } } // namespace v8::internal
2742 2742
2743 #endif // V8_TARGET_ARCH_IA32 2743 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/code-stubs-ia32.cc ('k') | src/mips/builtins-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698