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

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

Issue 88043002: Out-of-line constant pool on Arm: Stage 3 - Set Constant Pool Pointer on Function Entry (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Clean up EnterArgumentsAdaptorFrame Created 7 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
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 27 matching lines...) Expand all
38 // ---------------------------------------------------------------------------- 38 // ----------------------------------------------------------------------------
39 // Static helper functions 39 // Static helper functions
40 40
41 // Generate a MemOperand for loading a field from an object. 41 // Generate a MemOperand for loading a field from an object.
42 inline MemOperand FieldMemOperand(Register object, int offset) { 42 inline MemOperand FieldMemOperand(Register object, int offset) {
43 return MemOperand(object, offset - kHeapObjectTag); 43 return MemOperand(object, offset - kHeapObjectTag);
44 } 44 }
45 45
46 46
47 // Give alias names to registers 47 // Give alias names to registers
48 const Register pp = { kRegister_r7_Code }; // Constant pool pointer. 48 const Register cp = { kRegister_r7_Code }; // JavaScript context pointer.
49 const Register cp = { kRegister_r8_Code }; // JavaScript context pointer. 49 const Register pp = { kRegister_r8_Code }; // Constant pool pointer.
50 const Register kRootRegister = { kRegister_r10_Code }; // Roots array pointer. 50 const Register kRootRegister = { kRegister_r10_Code }; // Roots array pointer.
51 51
52 // Flags used for AllocateHeapNumber 52 // Flags used for AllocateHeapNumber
53 enum TaggingMode { 53 enum TaggingMode {
54 // Tag the result. 54 // Tag the result.
55 TAG_RESULT, 55 TAG_RESULT,
56 // Don't tag 56 // Don't tag
57 DONT_TAG_RESULT 57 DONT_TAG_RESULT
58 }; 58 };
59 59
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after
419 } else { 419 } else {
420 Pop(src3, src4, cond); 420 Pop(src3, src4, cond);
421 ldm(ia_w, sp, src1.bit() | src2.bit(), cond); 421 ldm(ia_w, sp, src1.bit() | src2.bit(), cond);
422 } 422 }
423 } else { 423 } else {
424 Pop(src2, src3, src4, cond); 424 Pop(src2, src3, src4, cond);
425 ldr(src1, MemOperand(sp, 4, PostIndex), cond); 425 ldr(src1, MemOperand(sp, 4, PostIndex), cond);
426 } 426 }
427 } 427 }
428 428
429 // Push a fixed frame, consisting of lr, fp, context, constant pool
430 // (if FLAG_enable_ool_constant_pool) and JS function / marker id if
431 // marker_reg is a valid register.
432 void PushFixedFrame(Register marker_reg = no_reg);
433 void PopFixedFrame(Register marker_reg = no_reg);
434
429 // Push and pop the registers that can hold pointers, as defined by the 435 // Push and pop the registers that can hold pointers, as defined by the
430 // RegList constant kSafepointSavedRegisters. 436 // RegList constant kSafepointSavedRegisters.
431 void PushSafepointRegisters(); 437 void PushSafepointRegisters();
432 void PopSafepointRegisters(); 438 void PopSafepointRegisters();
433 void PushSafepointRegistersAndDoubles(); 439 void PushSafepointRegistersAndDoubles();
434 void PopSafepointRegistersAndDoubles(); 440 void PopSafepointRegistersAndDoubles();
435 // Store value in register src in the safepoint stack slot for 441 // Store value in register src in the safepoint stack slot for
436 // register dst. 442 // register dst.
437 void StoreToSafepointRegisterSlot(Register src, Register dst); 443 void StoreToSafepointRegisterSlot(Register src, Register dst);
438 void StoreToSafepointRegistersAndDoublesSlot(Register src, Register dst); 444 void StoreToSafepointRegistersAndDoublesSlot(Register src, Register dst);
(...skipping 1090 matching lines...) Expand 10 before | Expand all | Expand 10 after
1529 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) 1535 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__)
1530 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> 1536 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm->
1531 #else 1537 #else
1532 #define ACCESS_MASM(masm) masm-> 1538 #define ACCESS_MASM(masm) masm->
1533 #endif 1539 #endif
1534 1540
1535 1541
1536 } } // namespace v8::internal 1542 } } // namespace v8::internal
1537 1543
1538 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ 1544 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698