OLD | NEW |
1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 2009 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 // be called by compiler.cc. | 292 // be called by compiler.cc. |
293 static Handle<Code> MakeCode(FunctionLiteral* fun, | 293 static Handle<Code> MakeCode(FunctionLiteral* fun, |
294 Handle<Script> script, | 294 Handle<Script> script, |
295 bool is_eval); | 295 bool is_eval); |
296 | 296 |
297 #ifdef ENABLE_LOGGING_AND_PROFILING | 297 #ifdef ENABLE_LOGGING_AND_PROFILING |
298 static bool ShouldGenerateLog(Expression* type); | 298 static bool ShouldGenerateLog(Expression* type); |
299 #endif | 299 #endif |
300 | 300 |
301 static void SetFunctionInfo(Handle<JSFunction> fun, | 301 static void SetFunctionInfo(Handle<JSFunction> fun, |
302 int length, | 302 FunctionLiteral* lit, |
303 int function_token_position, | |
304 int start_position, | |
305 int end_position, | |
306 bool is_expression, | |
307 bool is_toplevel, | 303 bool is_toplevel, |
308 Handle<Script> script, | 304 Handle<Script> script); |
309 Handle<String> inferred_name); | |
310 | 305 |
311 // Accessors | 306 // Accessors |
312 MacroAssembler* masm() { return masm_; } | 307 MacroAssembler* masm() { return masm_; } |
313 | 308 |
314 VirtualFrame* frame() const { return frame_; } | 309 VirtualFrame* frame() const { return frame_; } |
315 | 310 |
316 bool has_valid_frame() const { return frame_ != NULL; } | 311 bool has_valid_frame() const { return frame_ != NULL; } |
317 | 312 |
318 // Set the virtual frame to be new_frame, with non-frame register | 313 // Set the virtual frame to be new_frame, with non-frame register |
319 // reference counts given by non_frame_registers. The non-frame | 314 // reference counts given by non_frame_registers. The non-frame |
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
657 | ModeBits::encode(mode_) | 652 | ModeBits::encode(mode_) |
658 | FlagBits::encode(flags_); | 653 | FlagBits::encode(flags_); |
659 } | 654 } |
660 void Generate(MacroAssembler* masm); | 655 void Generate(MacroAssembler* masm); |
661 }; | 656 }; |
662 | 657 |
663 | 658 |
664 } } // namespace v8::internal | 659 } } // namespace v8::internal |
665 | 660 |
666 #endif // V8_X64_CODEGEN_X64_H_ | 661 #endif // V8_X64_CODEGEN_X64_H_ |
OLD | NEW |