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 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
292 static bool ShouldGenerateLog(Expression* type); | 292 static bool ShouldGenerateLog(Expression* type); |
293 #endif | 293 #endif |
294 | 294 |
295 static void SetFunctionInfo(Handle<JSFunction> fun, | 295 static void SetFunctionInfo(Handle<JSFunction> fun, |
296 int length, | 296 int length, |
297 int function_token_position, | 297 int function_token_position, |
298 int start_position, | 298 int start_position, |
299 int end_position, | 299 int end_position, |
300 bool is_expression, | 300 bool is_expression, |
301 bool is_toplevel, | 301 bool is_toplevel, |
302 Handle<Script> script); | 302 Handle<Script> script, |
| 303 Handle<String> inferred_name); |
303 | 304 |
304 // Accessors | 305 // Accessors |
305 MacroAssembler* masm() { return masm_; } | 306 MacroAssembler* masm() { return masm_; } |
306 | 307 |
307 VirtualFrame* frame() const { return frame_; } | 308 VirtualFrame* frame() const { return frame_; } |
308 | 309 |
309 bool has_valid_frame() const { return frame_ != NULL; } | 310 bool has_valid_frame() const { return frame_ != NULL; } |
310 | 311 |
311 // Set the virtual frame to be new_frame, with non-frame register | 312 // Set the virtual frame to be new_frame, with non-frame register |
312 // reference counts given by non_frame_registers. The non-frame | 313 // reference counts given by non_frame_registers. The non-frame |
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
611 friend class Reference; | 612 friend class Reference; |
612 friend class Result; | 613 friend class Result; |
613 | 614 |
614 DISALLOW_COPY_AND_ASSIGN(CodeGenerator); | 615 DISALLOW_COPY_AND_ASSIGN(CodeGenerator); |
615 }; | 616 }; |
616 | 617 |
617 | 618 |
618 } } // namespace v8::internal | 619 } } // namespace v8::internal |
619 | 620 |
620 #endif // V8_CODEGEN_IA32_H_ | 621 #endif // V8_CODEGEN_IA32_H_ |
OLD | NEW |