| 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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 // be called by compiler.cc. | 145 // be called by compiler.cc. |
| 146 static Handle<Code> MakeCode(FunctionLiteral* fun, | 146 static Handle<Code> MakeCode(FunctionLiteral* fun, |
| 147 Handle<Script> script, | 147 Handle<Script> script, |
| 148 bool is_eval); | 148 bool is_eval); |
| 149 | 149 |
| 150 #ifdef ENABLE_LOGGING_AND_PROFILING | 150 #ifdef ENABLE_LOGGING_AND_PROFILING |
| 151 static bool ShouldGenerateLog(Expression* type); | 151 static bool ShouldGenerateLog(Expression* type); |
| 152 #endif | 152 #endif |
| 153 | 153 |
| 154 static void SetFunctionInfo(Handle<JSFunction> fun, | 154 static void SetFunctionInfo(Handle<JSFunction> fun, |
| 155 int length, | 155 FunctionLiteral* lit, |
| 156 int function_token_position, | |
| 157 int start_position, | |
| 158 int end_position, | |
| 159 bool is_expression, | |
| 160 bool is_toplevel, | 156 bool is_toplevel, |
| 161 Handle<Script> script, | 157 Handle<Script> script); |
| 162 Handle<String> inferred_name); | |
| 163 | 158 |
| 164 // Accessors | 159 // Accessors |
| 165 MacroAssembler* masm() { return masm_; } | 160 MacroAssembler* masm() { return masm_; } |
| 166 | 161 |
| 167 VirtualFrame* frame() const { return frame_; } | 162 VirtualFrame* frame() const { return frame_; } |
| 168 | 163 |
| 169 bool has_valid_frame() const { return frame_ != NULL; } | 164 bool has_valid_frame() const { return frame_ != NULL; } |
| 170 | 165 |
| 171 // Set the virtual frame to be new_frame, with non-frame register | 166 // Set the virtual frame to be new_frame, with non-frame register |
| 172 // reference counts given by non_frame_registers. The non-frame | 167 // reference counts given by non_frame_registers. The non-frame |
| (...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 498 constant_rhs_); | 493 constant_rhs_); |
| 499 } | 494 } |
| 500 } | 495 } |
| 501 #endif | 496 #endif |
| 502 }; | 497 }; |
| 503 | 498 |
| 504 | 499 |
| 505 } } // namespace v8::internal | 500 } } // namespace v8::internal |
| 506 | 501 |
| 507 #endif // V8_ARM_CODEGEN_ARM_H_ | 502 #endif // V8_ARM_CODEGEN_ARM_H_ |
| OLD | NEW |