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

Side by Side Diff: src/mips/code-stubs-mips.h

Issue 8557003: MIPS: Add a level of indirection to exception handler addresses. (Closed)
Patch Set: Rebased on r10024 Created 9 years, 1 month 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
« no previous file with comments | « no previous file | src/mips/code-stubs-mips.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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 void GenerateGenericStubSub(MacroAssembler* masm); 130 void GenerateGenericStubSub(MacroAssembler* masm);
131 void GenerateGenericStubBitNot(MacroAssembler* masm); 131 void GenerateGenericStubBitNot(MacroAssembler* masm);
132 void GenerateGenericCodeFallback(MacroAssembler* masm); 132 void GenerateGenericCodeFallback(MacroAssembler* masm);
133 133
134 virtual int GetCodeKind() { return Code::UNARY_OP_IC; } 134 virtual int GetCodeKind() { return Code::UNARY_OP_IC; }
135 135
136 virtual InlineCacheState GetICState() { 136 virtual InlineCacheState GetICState() {
137 return UnaryOpIC::ToState(operand_type_); 137 return UnaryOpIC::ToState(operand_type_);
138 } 138 }
139 139
140 virtual void FinishCode(Code* code) { 140 virtual void FinishCode(Handle<Code> code) {
141 code->set_unary_op_type(operand_type_); 141 code->set_unary_op_type(operand_type_);
142 } 142 }
143 }; 143 };
144 144
145 145
146 class BinaryOpStub: public CodeStub { 146 class BinaryOpStub: public CodeStub {
147 public: 147 public:
148 BinaryOpStub(Token::Value op, OverwriteMode mode) 148 BinaryOpStub(Token::Value op, OverwriteMode mode)
149 : op_(op), 149 : op_(op),
150 mode_(mode), 150 mode_(mode),
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 void GenerateRegisterArgsPush(MacroAssembler* masm); 229 void GenerateRegisterArgsPush(MacroAssembler* masm);
230 void GenerateTypeTransition(MacroAssembler* masm); 230 void GenerateTypeTransition(MacroAssembler* masm);
231 void GenerateTypeTransitionWithSavedArgs(MacroAssembler* masm); 231 void GenerateTypeTransitionWithSavedArgs(MacroAssembler* masm);
232 232
233 virtual int GetCodeKind() { return Code::BINARY_OP_IC; } 233 virtual int GetCodeKind() { return Code::BINARY_OP_IC; }
234 234
235 virtual InlineCacheState GetICState() { 235 virtual InlineCacheState GetICState() {
236 return BinaryOpIC::ToState(operands_type_); 236 return BinaryOpIC::ToState(operands_type_);
237 } 237 }
238 238
239 virtual void FinishCode(Code* code) { 239 virtual void FinishCode(Handle<Code> code) {
240 code->set_binary_op_type(operands_type_); 240 code->set_binary_op_type(operands_type_);
241 code->set_binary_op_result_type(result_type_); 241 code->set_binary_op_result_type(result_type_);
242 } 242 }
243 243
244 friend class CodeGenerator; 244 friend class CodeGenerator;
245 }; 245 };
246 246
247 247
248 class StringHelper : public AllStatic { 248 class StringHelper : public AllStatic {
249 public: 249 public:
(...skipping 644 matching lines...) Expand 10 before | Expand all | Expand 10 after
894 894
895 class LookupModeBits: public BitField<LookupMode, 0, 1> {}; 895 class LookupModeBits: public BitField<LookupMode, 0, 1> {};
896 896
897 LookupMode mode_; 897 LookupMode mode_;
898 }; 898 };
899 899
900 900
901 } } // namespace v8::internal 901 } } // namespace v8::internal
902 902
903 #endif // V8_MIPS_CODE_STUBS_ARM_H_ 903 #endif // V8_MIPS_CODE_STUBS_ARM_H_
OLDNEW
« no previous file with comments | « no previous file | src/mips/code-stubs-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698