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

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

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/serialize.cc ('k') | src/x64/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 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 312
313 // Push and pop the registers that can hold pointers. 313 // Push and pop the registers that can hold pointers.
314 void PushSafepointRegisters() { Pushad(); } 314 void PushSafepointRegisters() { Pushad(); }
315 void PopSafepointRegisters() { Popad(); } 315 void PopSafepointRegisters() { Popad(); }
316 // Store the value in register src in the safepoint register stack 316 // Store the value in register src in the safepoint register stack
317 // slot for register dst. 317 // slot for register dst.
318 void StoreToSafepointRegisterSlot(Register dst, Register src); 318 void StoreToSafepointRegisterSlot(Register dst, Register src);
319 void LoadFromSafepointRegisterSlot(Register dst, Register src); 319 void LoadFromSafepointRegisterSlot(Register dst, Register src);
320 320
321 void InitializeRootRegister() { 321 void InitializeRootRegister() {
322 ExternalReference roots_address = 322 ExternalReference roots_array_start =
323 ExternalReference::roots_address(isolate()); 323 ExternalReference::roots_array_start(isolate());
324 movq(kRootRegister, roots_address); 324 movq(kRootRegister, roots_array_start);
325 addq(kRootRegister, Immediate(kRootRegisterBias)); 325 addq(kRootRegister, Immediate(kRootRegisterBias));
326 } 326 }
327 327
328 // --------------------------------------------------------------------------- 328 // ---------------------------------------------------------------------------
329 // JavaScript invokes 329 // JavaScript invokes
330 330
331 // Setup call kind marking in rcx. The method takes rcx as an 331 // Setup call kind marking in rcx. The method takes rcx as an
332 // explicit first parameter to make the code more readable at the 332 // explicit first parameter to make the code more readable at the
333 // call sites. 333 // call sites.
334 void SetCallKind(Register dst, CallKind kind); 334 void SetCallKind(Register dst, CallKind kind);
(...skipping 1112 matching lines...) Expand 10 before | Expand all | Expand 10 after
1447 masm->popfd(); \ 1447 masm->popfd(); \
1448 } \ 1448 } \
1449 masm-> 1449 masm->
1450 #else 1450 #else
1451 #define ACCESS_MASM(masm) masm-> 1451 #define ACCESS_MASM(masm) masm->
1452 #endif 1452 #endif
1453 1453
1454 } } // namespace v8::internal 1454 } } // namespace v8::internal
1455 1455
1456 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ 1456 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_
OLDNEW
« no previous file with comments | « src/serialize.cc ('k') | src/x64/macro-assembler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698