OLD | NEW |
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
323 void GenericBinaryOperation(Token::Value op); | 323 void GenericBinaryOperation(Token::Value op); |
324 void Comparison(Condition cc, bool strict = false); | 324 void Comparison(Condition cc, bool strict = false); |
325 | 325 |
326 void SmiOperation(Token::Value op, Handle<Object> value, bool reversed); | 326 void SmiOperation(Token::Value op, Handle<Object> value, bool reversed); |
327 | 327 |
328 void CallWithArguments(ZoneList<Expression*>* arguments, int position); | 328 void CallWithArguments(ZoneList<Expression*>* arguments, int position); |
329 | 329 |
330 // Control flow | 330 // Control flow |
331 void Branch(bool if_true, JumpTarget* target); | 331 void Branch(bool if_true, JumpTarget* target); |
332 void CheckStack(); | 332 void CheckStack(); |
333 void CleanStack(int num_bytes); | |
334 | 333 |
335 bool CheckForInlineRuntimeCall(CallRuntime* node); | 334 bool CheckForInlineRuntimeCall(CallRuntime* node); |
336 Handle<JSFunction> BuildBoilerplate(FunctionLiteral* node); | 335 Handle<JSFunction> BuildBoilerplate(FunctionLiteral* node); |
337 void ProcessDeclarations(ZoneList<Declaration*>* declarations); | 336 void ProcessDeclarations(ZoneList<Declaration*>* declarations); |
338 | 337 |
339 Handle<Code> ComputeCallInitialize(int argc); | 338 Handle<Code> ComputeCallInitialize(int argc); |
340 Handle<Code> ComputeCallInitializeInLoop(int argc); | 339 Handle<Code> ComputeCallInitializeInLoop(int argc); |
341 | 340 |
342 // Declare global variables and functions in the given array of | 341 // Declare global variables and functions in the given array of |
343 // name/value pairs. | 342 // name/value pairs. |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
439 | 438 |
440 // Assembler | 439 // Assembler |
441 MacroAssembler* masm_; // to generate code | 440 MacroAssembler* masm_; // to generate code |
442 | 441 |
443 // Code generation state | 442 // Code generation state |
444 Scope* scope_; | 443 Scope* scope_; |
445 VirtualFrame* frame_; | 444 VirtualFrame* frame_; |
446 RegisterAllocator* allocator_; | 445 RegisterAllocator* allocator_; |
447 Condition cc_reg_; | 446 Condition cc_reg_; |
448 CodeGenState* state_; | 447 CodeGenState* state_; |
449 int break_stack_height_; | |
450 | 448 |
451 // Jump targets | 449 // Jump targets |
452 BreakTarget function_return_; | 450 BreakTarget function_return_; |
453 | 451 |
454 // True if the function return is shadowed (ie, jumping to the target | 452 // True if the function return is shadowed (ie, jumping to the target |
455 // function_return_ does not jump to the true function return, but rather | 453 // function_return_ does not jump to the true function return, but rather |
456 // to some unlinking code). | 454 // to some unlinking code). |
457 bool function_return_is_shadowed_; | 455 bool function_return_is_shadowed_; |
458 | 456 |
459 // True when we are in code that expects the virtual frame to be fully | 457 // True when we are in code that expects the virtual frame to be fully |
(...skipping 15 matching lines...) Expand all Loading... |
475 cgen_->set_in_spilled_code(false); | 473 cgen_->set_in_spilled_code(false); |
476 GetValue(typeof_state); | 474 GetValue(typeof_state); |
477 cgen_->frame()->SpillAll(); | 475 cgen_->frame()->SpillAll(); |
478 cgen_->set_in_spilled_code(true); | 476 cgen_->set_in_spilled_code(true); |
479 } | 477 } |
480 | 478 |
481 | 479 |
482 } } // namespace v8::internal | 480 } } // namespace v8::internal |
483 | 481 |
484 #endif // V8_CODEGEN_ARM_H_ | 482 #endif // V8_CODEGEN_ARM_H_ |
OLD | NEW |