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 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
305 | 305 |
306 #ifdef ENABLE_LOGGING_AND_PROFILING | 306 #ifdef ENABLE_LOGGING_AND_PROFILING |
307 static bool ShouldGenerateLog(Expression* type); | 307 static bool ShouldGenerateLog(Expression* type); |
308 #endif | 308 #endif |
309 | 309 |
310 static void SetFunctionInfo(Handle<JSFunction> fun, | 310 static void SetFunctionInfo(Handle<JSFunction> fun, |
311 FunctionLiteral* lit, | 311 FunctionLiteral* lit, |
312 bool is_toplevel, | 312 bool is_toplevel, |
313 Handle<Script> script); | 313 Handle<Script> script); |
314 | 314 |
| 315 static void RecordPositions(MacroAssembler* masm, int pos); |
| 316 |
315 // Accessors | 317 // Accessors |
316 MacroAssembler* masm() { return masm_; } | 318 MacroAssembler* masm() { return masm_; } |
317 | 319 |
318 VirtualFrame* frame() const { return frame_; } | 320 VirtualFrame* frame() const { return frame_; } |
319 | 321 |
320 bool has_valid_frame() const { return frame_ != NULL; } | 322 bool has_valid_frame() const { return frame_ != NULL; } |
321 | 323 |
322 // Set the virtual frame to be new_frame, with non-frame register | 324 // Set the virtual frame to be new_frame, with non-frame register |
323 // reference counts given by non_frame_registers. The non-frame | 325 // reference counts given by non_frame_registers. The non-frame |
324 // register reference counts of the old frame are returned in | 326 // register reference counts of the old frame are returned in |
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
708 void SetArgsReversed() { args_reversed_ = true; } | 710 void SetArgsReversed() { args_reversed_ = true; } |
709 bool HasSmiCodeInStub() { return (flags_ & NO_SMI_CODE_IN_STUB) == 0; } | 711 bool HasSmiCodeInStub() { return (flags_ & NO_SMI_CODE_IN_STUB) == 0; } |
710 bool HasArgumentsInRegisters() { return args_in_registers_; } | 712 bool HasArgumentsInRegisters() { return args_in_registers_; } |
711 bool HasArgumentsReversed() { return args_reversed_; } | 713 bool HasArgumentsReversed() { return args_reversed_; } |
712 }; | 714 }; |
713 | 715 |
714 | 716 |
715 } } // namespace v8::internal | 717 } } // namespace v8::internal |
716 | 718 |
717 #endif // V8_IA32_CODEGEN_IA32_H_ | 719 #endif // V8_IA32_CODEGEN_IA32_H_ |
OLD | NEW |