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

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

Issue 6793017: In LCodeGen::DoDeferredLInstanceOfKnownGlobal emit safepoint with registers for the call to stub. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: port to arm and x64 Created 9 years, 8 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
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 1065 matching lines...) Expand 10 before | Expand all | Expand 10 after
1076 1076
1077 // Check that the stack is aligned. 1077 // Check that the stack is aligned.
1078 void CheckStackAlignment(); 1078 void CheckStackAlignment();
1079 1079
1080 // Verify restrictions about code generated in stubs. 1080 // Verify restrictions about code generated in stubs.
1081 void set_generating_stub(bool value) { generating_stub_ = value; } 1081 void set_generating_stub(bool value) { generating_stub_ = value; }
1082 bool generating_stub() { return generating_stub_; } 1082 bool generating_stub() { return generating_stub_; }
1083 void set_allow_stub_calls(bool value) { allow_stub_calls_ = value; } 1083 void set_allow_stub_calls(bool value) { allow_stub_calls_ = value; }
1084 bool allow_stub_calls() { return allow_stub_calls_; } 1084 bool allow_stub_calls() { return allow_stub_calls_; }
1085 1085
1086 static int SafepointRegisterStackIndex(Register reg) {
1087 return SafepointRegisterStackIndex(reg.code());
1088 }
1089
1086 private: 1090 private:
1087 // Order general registers are pushed by Pushad. 1091 // Order general registers are pushed by Pushad.
1088 // rax, rcx, rdx, rbx, rsi, rdi, r8, r9, r11, r14, r15. 1092 // rax, rcx, rdx, rbx, rsi, rdi, r8, r9, r11, r14, r15.
1089 static int kSafepointPushRegisterIndices[Register::kNumRegisters]; 1093 static int kSafepointPushRegisterIndices[Register::kNumRegisters];
1090 static const int kNumSafepointSavedRegisters = 11; 1094 static const int kNumSafepointSavedRegisters = 11;
1091 1095
1092 bool generating_stub_; 1096 bool generating_stub_;
1093 bool allow_stub_calls_; 1097 bool allow_stub_calls_;
1094 bool root_array_available_; 1098 bool root_array_available_;
1095 1099
(...skipping 879 matching lines...) Expand 10 before | Expand all | Expand 10 after
1975 Jump(adaptor, RelocInfo::CODE_TARGET); 1979 Jump(adaptor, RelocInfo::CODE_TARGET);
1976 } 1980 }
1977 bind(&invoke); 1981 bind(&invoke);
1978 } 1982 }
1979 } 1983 }
1980 1984
1981 1985
1982 } } // namespace v8::internal 1986 } } // namespace v8::internal
1983 1987
1984 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ 1988 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698