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

Side by Side Diff: src/mips/lithium-codegen-mips.h

Issue 10908194: Fix arguments object materialization during deopt. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Improved test coverage and fixed bug. Created 8 years, 3 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/lithium.h ('k') | src/mips/lithium-codegen-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 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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 MemOperand PrepareKeyedOperand(Register key, 136 MemOperand PrepareKeyedOperand(Register key,
137 Register base, 137 Register base,
138 bool key_is_constant, 138 bool key_is_constant,
139 int constant_key, 139 int constant_key,
140 int element_size, 140 int element_size,
141 int shift_size, 141 int shift_size,
142 int additional_index, 142 int additional_index,
143 int additional_offset); 143 int additional_offset);
144 144
145 // Emit frame translation commands for an environment. 145 // Emit frame translation commands for an environment.
146 void WriteTranslation(LEnvironment* environment, Translation* translation); 146 void WriteTranslation(LEnvironment* environment,
147 Translation* translation,
148 int* arguments_index,
149 int* arguments_count);
147 150
148 // Declare methods that deal with the individual node types. 151 // Declare methods that deal with the individual node types.
149 #define DECLARE_DO(type) void Do##type(L##type* node); 152 #define DECLARE_DO(type) void Do##type(L##type* node);
150 LITHIUM_CONCRETE_INSTRUCTION_LIST(DECLARE_DO) 153 LITHIUM_CONCRETE_INSTRUCTION_LIST(DECLARE_DO)
151 #undef DECLARE_DO 154 #undef DECLARE_DO
152 155
153 private: 156 private:
154 enum Status { 157 enum Status {
155 UNUSED, 158 UNUSED,
156 GENERATING, 159 GENERATING,
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 void RegisterEnvironmentForDeoptimization(LEnvironment* environment, 254 void RegisterEnvironmentForDeoptimization(LEnvironment* environment,
252 Safepoint::DeoptMode mode); 255 Safepoint::DeoptMode mode);
253 void DeoptimizeIf(Condition cc, 256 void DeoptimizeIf(Condition cc,
254 LEnvironment* environment, 257 LEnvironment* environment,
255 Register src1 = zero_reg, 258 Register src1 = zero_reg,
256 const Operand& src2 = Operand(zero_reg)); 259 const Operand& src2 = Operand(zero_reg));
257 260
258 void AddToTranslation(Translation* translation, 261 void AddToTranslation(Translation* translation,
259 LOperand* op, 262 LOperand* op,
260 bool is_tagged, 263 bool is_tagged,
261 bool is_uint32); 264 bool is_uint32,
265 int arguments_index,
266 int arguments_count);
262 void PopulateDeoptimizationData(Handle<Code> code); 267 void PopulateDeoptimizationData(Handle<Code> code);
263 int DefineDeoptimizationLiteral(Handle<Object> literal); 268 int DefineDeoptimizationLiteral(Handle<Object> literal);
264 269
265 void PopulateDeoptimizationLiteralsWithInlinedFunctions(); 270 void PopulateDeoptimizationLiteralsWithInlinedFunctions();
266 271
267 Register ToRegister(int index) const; 272 Register ToRegister(int index) const;
268 DoubleRegister ToDoubleRegister(int index) const; 273 DoubleRegister ToDoubleRegister(int index) const;
269 274
270 // Specific math operations - used from DoUnaryMathOperation. 275 // Specific math operations - used from DoUnaryMathOperation.
271 void EmitIntegerMathAbs(LUnaryMathOperation* instr); 276 void EmitIntegerMathAbs(LUnaryMathOperation* instr);
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
473 LCodeGen* codegen_; 478 LCodeGen* codegen_;
474 Label entry_; 479 Label entry_;
475 Label exit_; 480 Label exit_;
476 Label* external_exit_; 481 Label* external_exit_;
477 int instruction_index_; 482 int instruction_index_;
478 }; 483 };
479 484
480 } } // namespace v8::internal 485 } } // namespace v8::internal
481 486
482 #endif // V8_MIPS_LITHIUM_CODEGEN_MIPS_H_ 487 #endif // V8_MIPS_LITHIUM_CODEGEN_MIPS_H_
OLDNEW
« no previous file with comments | « src/lithium.h ('k') | src/mips/lithium-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698