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

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

Issue 24596002: ARM: Let the register allocator handle the context register. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed first round of comments. Created 7 years, 2 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 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 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 int num_arguments, 251 int num_arguments,
252 LInstruction* instr); 252 LInstruction* instr);
253 253
254 void CallRuntime(Runtime::FunctionId id, 254 void CallRuntime(Runtime::FunctionId id,
255 int num_arguments, 255 int num_arguments,
256 LInstruction* instr) { 256 LInstruction* instr) {
257 const Runtime::Function* function = Runtime::FunctionForId(id); 257 const Runtime::Function* function = Runtime::FunctionForId(id);
258 CallRuntime(function, num_arguments, instr); 258 CallRuntime(function, num_arguments, instr);
259 } 259 }
260 260
261 void LoadContextFromDeferred(LOperand* context);
261 void CallRuntimeFromDeferred(Runtime::FunctionId id, 262 void CallRuntimeFromDeferred(Runtime::FunctionId id,
262 int argc, 263 int argc,
263 LInstruction* instr); 264 LInstruction* instr,
265 LOperand* context);
264 266
265 enum R1State { 267 enum R1State {
266 R1_UNINITIALIZED, 268 R1_UNINITIALIZED,
267 R1_CONTAINS_TARGET 269 R1_CONTAINS_TARGET
268 }; 270 };
269 271
270 // Generate a direct call to a known function. Expects the function 272 // Generate a direct call to a known function. Expects the function
271 // to be in r1. 273 // to be in r1.
272 void CallKnownFunction(Handle<JSFunction> function, 274 void CallKnownFunction(Handle<JSFunction> function,
273 int formal_parameter_count, 275 int formal_parameter_count,
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
496 LCodeGen* codegen_; 498 LCodeGen* codegen_;
497 Label entry_; 499 Label entry_;
498 Label exit_; 500 Label exit_;
499 Label* external_exit_; 501 Label* external_exit_;
500 int instruction_index_; 502 int instruction_index_;
501 }; 503 };
502 504
503 } } // namespace v8::internal 505 } } // namespace v8::internal
504 506
505 #endif // V8_ARM_LITHIUM_CODEGEN_ARM_H_ 507 #endif // V8_ARM_LITHIUM_CODEGEN_ARM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698