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

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

Issue 9455088: Remove static initializers in v8. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address Florian's comments. Created 8 years, 9 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/x64/disasm-x64.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 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 1289 matching lines...) Expand 10 before | Expand all | Expand 10 after
1300 void LeaveFrame(StackFrame::Type type); 1300 void LeaveFrame(StackFrame::Type type);
1301 1301
1302 // Expects object in rax and returns map with validated enum cache 1302 // Expects object in rax and returns map with validated enum cache
1303 // in rax. Assumes that any other register can be used as a scratch. 1303 // in rax. Assumes that any other register can be used as a scratch.
1304 void CheckEnumCache(Register null_value, 1304 void CheckEnumCache(Register null_value,
1305 Label* call_runtime); 1305 Label* call_runtime);
1306 1306
1307 private: 1307 private:
1308 // Order general registers are pushed by Pushad. 1308 // Order general registers are pushed by Pushad.
1309 // rax, rcx, rdx, rbx, rsi, rdi, r8, r9, r11, r14, r15. 1309 // rax, rcx, rdx, rbx, rsi, rdi, r8, r9, r11, r14, r15.
1310 static int kSafepointPushRegisterIndices[Register::kNumRegisters]; 1310 static const int kSafepointPushRegisterIndices[Register::kNumRegisters];
1311 static const int kNumSafepointSavedRegisters = 11; 1311 static const int kNumSafepointSavedRegisters = 11;
1312 static const int kSmiShift = kSmiTagSize + kSmiShiftSize; 1312 static const int kSmiShift = kSmiTagSize + kSmiShiftSize;
1313 1313
1314 bool generating_stub_; 1314 bool generating_stub_;
1315 bool allow_stub_calls_; 1315 bool allow_stub_calls_;
1316 bool has_frame_; 1316 bool has_frame_;
1317 bool root_array_available_; 1317 bool root_array_available_;
1318 1318
1319 // Returns a register holding the smi value. The register MUST NOT be 1319 // Returns a register holding the smi value. The register MUST NOT be
1320 // modified. It may be the "smi 1 constant" register. 1320 // modified. It may be the "smi 1 constant" register.
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
1472 masm->popfd(); \ 1472 masm->popfd(); \
1473 } \ 1473 } \
1474 masm-> 1474 masm->
1475 #else 1475 #else
1476 #define ACCESS_MASM(masm) masm-> 1476 #define ACCESS_MASM(masm) masm->
1477 #endif 1477 #endif
1478 1478
1479 } } // namespace v8::internal 1479 } } // namespace v8::internal
1480 1480
1481 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ 1481 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_
OLDNEW
« no previous file with comments | « src/x64/disasm-x64.cc ('k') | src/x64/macro-assembler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698