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

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

Issue 6541051: Unifying the handling of storing and loading from safepoint stack (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 10 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/arm/lithium-codegen-arm.cc ('k') | src/arm/macro-assembler-arm.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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 Push(src2, src3, src4, cond); 233 Push(src2, src3, src4, cond);
234 } 234 }
235 } 235 }
236 236
237 // Push and pop the registers that can hold pointers, as defined by the 237 // Push and pop the registers that can hold pointers, as defined by the
238 // RegList constant kSafepointSavedRegisters. 238 // RegList constant kSafepointSavedRegisters.
239 void PushSafepointRegisters(); 239 void PushSafepointRegisters();
240 void PopSafepointRegisters(); 240 void PopSafepointRegisters();
241 void PushSafepointRegistersAndDoubles(); 241 void PushSafepointRegistersAndDoubles();
242 void PopSafepointRegistersAndDoubles(); 242 void PopSafepointRegistersAndDoubles();
243 void StoreToSafepointRegisterSlot(Register reg); 243 // Store value in register src in the safepoint stack slot for
244 void StoreToSafepointRegistersAndDoublesSlot(Register reg); 244 // register dst.
245 void LoadFromSafepointRegisterSlot(Register reg); 245 void StoreToSafepointRegisterSlot(Register src, Register dst);
246 static int SafepointRegisterStackIndex(int reg_code); 246 void StoreToSafepointRegistersAndDoublesSlot(Register src, Register dst);
247 static MemOperand SafepointRegisterSlot(Register reg); 247 // Load the value of the src register from its safepoint stack slot
248 static MemOperand SafepointRegistersAndDoublesSlot(Register reg); 248 // into register dst.
249 void LoadFromSafepointRegisterSlot(Register dst, Register src);
249 250
250 // Load two consecutive registers with two consecutive memory locations. 251 // Load two consecutive registers with two consecutive memory locations.
251 void Ldrd(Register dst1, 252 void Ldrd(Register dst1,
252 Register dst2, 253 Register dst2,
253 const MemOperand& src, 254 const MemOperand& src,
254 Condition cond = al); 255 Condition cond = al);
255 256
256 // Store two consecutive registers to two consecutive memory locations. 257 // Store two consecutive registers to two consecutive memory locations.
257 void Strd(Register src1, 258 void Strd(Register src1,
258 Register src2, 259 Register src2,
(...skipping 617 matching lines...) Expand 10 before | Expand all | Expand 10 after
876 // Activation support. 877 // Activation support.
877 void EnterFrame(StackFrame::Type type); 878 void EnterFrame(StackFrame::Type type);
878 void LeaveFrame(StackFrame::Type type); 879 void LeaveFrame(StackFrame::Type type);
879 880
880 void InitializeNewString(Register string, 881 void InitializeNewString(Register string,
881 Register length, 882 Register length,
882 Heap::RootListIndex map_index, 883 Heap::RootListIndex map_index,
883 Register scratch1, 884 Register scratch1,
884 Register scratch2); 885 Register scratch2);
885 886
887 // Compute memory operands for safepoint stack slots.
888 static int SafepointRegisterStackIndex(int reg_code);
889 MemOperand SafepointRegisterSlot(Register reg);
890 MemOperand SafepointRegistersAndDoublesSlot(Register reg);
891
886 bool generating_stub_; 892 bool generating_stub_;
887 bool allow_stub_calls_; 893 bool allow_stub_calls_;
888 // This handle will be patched with the code object on installation. 894 // This handle will be patched with the code object on installation.
889 Handle<Object> code_object_; 895 Handle<Object> code_object_;
896
897 // Needs access to SafepointRegisterStackIndex for optimized frame
898 // traversal.
899 friend class OptimizedFrame;
890 }; 900 };
891 901
892 902
893 #ifdef ENABLE_DEBUGGER_SUPPORT 903 #ifdef ENABLE_DEBUGGER_SUPPORT
894 // The code patcher is used to patch (typically) small parts of code e.g. for 904 // The code patcher is used to patch (typically) small parts of code e.g. for
895 // debugging and other types of instrumentation. When using the code patcher 905 // debugging and other types of instrumentation. When using the code patcher
896 // the exact number of bytes specified must be emitted. It is not legal to emit 906 // the exact number of bytes specified must be emitted. It is not legal to emit
897 // relocation information. If any of these constraints are violated it causes 907 // relocation information. If any of these constraints are violated it causes
898 // an assertion to fail. 908 // an assertion to fail.
899 class CodePatcher { 909 class CodePatcher {
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
953 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) 963 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__)
954 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> 964 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm->
955 #else 965 #else
956 #define ACCESS_MASM(masm) masm-> 966 #define ACCESS_MASM(masm) masm->
957 #endif 967 #endif
958 968
959 969
960 } } // namespace v8::internal 970 } } // namespace v8::internal
961 971
962 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ 972 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_
OLDNEW
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/arm/macro-assembler-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698