| 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 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 | 158 |
| 159 static void SetFunctionInfo(Handle<JSFunction> fun, | 159 static void SetFunctionInfo(Handle<JSFunction> fun, |
| 160 FunctionLiteral* lit, | 160 FunctionLiteral* lit, |
| 161 bool is_toplevel, | 161 bool is_toplevel, |
| 162 Handle<Script> script); | 162 Handle<Script> script); |
| 163 | 163 |
| 164 static void RecordPositions(MacroAssembler* masm, int pos); | 164 static void RecordPositions(MacroAssembler* masm, int pos); |
| 165 | 165 |
| 166 // Accessors | 166 // Accessors |
| 167 MacroAssembler* masm() { return masm_; } | 167 MacroAssembler* masm() { return masm_; } |
| 168 | |
| 169 VirtualFrame* frame() const { return frame_; } | 168 VirtualFrame* frame() const { return frame_; } |
| 169 Handle<Script> script() { return script_; } |
| 170 | 170 |
| 171 bool has_valid_frame() const { return frame_ != NULL; } | 171 bool has_valid_frame() const { return frame_ != NULL; } |
| 172 | 172 |
| 173 // Set the virtual frame to be new_frame, with non-frame register | 173 // Set the virtual frame to be new_frame, with non-frame register |
| 174 // reference counts given by non_frame_registers. The non-frame | 174 // reference counts given by non_frame_registers. The non-frame |
| 175 // register reference counts of the old frame are returned in | 175 // register reference counts of the old frame are returned in |
| 176 // non_frame_registers. | 176 // non_frame_registers. |
| 177 void SetFrame(VirtualFrame* new_frame, RegisterFile* non_frame_registers); | 177 void SetFrame(VirtualFrame* new_frame, RegisterFile* non_frame_registers); |
| 178 | 178 |
| 179 void DeleteFrame(); | 179 void DeleteFrame(); |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 316 const char* name; | 316 const char* name; |
| 317 }; | 317 }; |
| 318 | 318 |
| 319 static InlineRuntimeLUT* FindInlineRuntimeLUT(Handle<String> name); | 319 static InlineRuntimeLUT* FindInlineRuntimeLUT(Handle<String> name); |
| 320 bool CheckForInlineRuntimeCall(CallRuntime* node); | 320 bool CheckForInlineRuntimeCall(CallRuntime* node); |
| 321 static bool PatchInlineRuntimeEntry(Handle<String> name, | 321 static bool PatchInlineRuntimeEntry(Handle<String> name, |
| 322 const InlineRuntimeLUT& new_entry, | 322 const InlineRuntimeLUT& new_entry, |
| 323 InlineRuntimeLUT* old_entry); | 323 InlineRuntimeLUT* old_entry); |
| 324 | 324 |
| 325 static Handle<Code> ComputeLazyCompile(int argc); | 325 static Handle<Code> ComputeLazyCompile(int argc); |
| 326 Handle<JSFunction> BuildBoilerplate(FunctionLiteral* node); | |
| 327 void ProcessDeclarations(ZoneList<Declaration*>* declarations); | 326 void ProcessDeclarations(ZoneList<Declaration*>* declarations); |
| 328 | 327 |
| 329 static Handle<Code> ComputeCallInitialize(int argc, InLoopFlag in_loop); | 328 static Handle<Code> ComputeCallInitialize(int argc, InLoopFlag in_loop); |
| 330 | 329 |
| 331 // Declare global variables and functions in the given array of | 330 // Declare global variables and functions in the given array of |
| 332 // name/value pairs. | 331 // name/value pairs. |
| 333 void DeclareGlobals(Handle<FixedArray> pairs); | 332 void DeclareGlobals(Handle<FixedArray> pairs); |
| 334 | 333 |
| 335 // Instantiate the function boilerplate. | 334 // Instantiate the function boilerplate. |
| 336 void InstantiateBoilerplate(Handle<JSFunction> boilerplate); | 335 void InstantiateBoilerplate(Handle<JSFunction> boilerplate); |
| (...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 532 constant_rhs_); | 531 constant_rhs_); |
| 533 } | 532 } |
| 534 } | 533 } |
| 535 #endif | 534 #endif |
| 536 }; | 535 }; |
| 537 | 536 |
| 538 | 537 |
| 539 } } // namespace v8::internal | 538 } } // namespace v8::internal |
| 540 | 539 |
| 541 #endif // V8_ARM_CODEGEN_ARM_H_ | 540 #endif // V8_ARM_CODEGEN_ARM_H_ |
| OLD | NEW |