| 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 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 264 fun->shared()->set_function_token_position(lit->function_token_position()); | 264 fun->shared()->set_function_token_position(lit->function_token_position()); |
| 265 fun->shared()->set_start_position(lit->start_position()); | 265 fun->shared()->set_start_position(lit->start_position()); |
| 266 fun->shared()->set_end_position(lit->end_position()); | 266 fun->shared()->set_end_position(lit->end_position()); |
| 267 fun->shared()->set_is_expression(lit->is_expression()); | 267 fun->shared()->set_is_expression(lit->is_expression()); |
| 268 fun->shared()->set_is_toplevel(is_toplevel); | 268 fun->shared()->set_is_toplevel(is_toplevel); |
| 269 fun->shared()->set_inferred_name(*lit->inferred_name()); | 269 fun->shared()->set_inferred_name(*lit->inferred_name()); |
| 270 fun->shared()->SetThisPropertyAssignmentsInfo( | 270 fun->shared()->SetThisPropertyAssignmentsInfo( |
| 271 lit->has_only_this_property_assignments(), | 271 lit->has_only_this_property_assignments(), |
| 272 lit->has_only_simple_this_property_assignments(), | 272 lit->has_only_simple_this_property_assignments(), |
| 273 *lit->this_property_assignments()); | 273 *lit->this_property_assignments()); |
| 274 fun->shared()->set_try_fast_codegen(lit->is_marked_as_fast()); |
| 274 } | 275 } |
| 275 | 276 |
| 276 | 277 |
| 277 Handle<Code> CodeGenerator::ComputeLazyCompile(int argc) { | 278 Handle<Code> CodeGenerator::ComputeLazyCompile(int argc) { |
| 278 CALL_HEAP_FUNCTION(StubCache::ComputeLazyCompile(argc), Code); | 279 CALL_HEAP_FUNCTION(StubCache::ComputeLazyCompile(argc), Code); |
| 279 } | 280 } |
| 280 | 281 |
| 281 | 282 |
| 282 Handle<JSFunction> CodeGenerator::BuildBoilerplate(FunctionLiteral* node) { | 283 Handle<JSFunction> CodeGenerator::BuildBoilerplate(FunctionLiteral* node) { |
| 283 #ifdef DEBUG | 284 #ifdef DEBUG |
| (...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 545 void ArgumentsAccessStub::Generate(MacroAssembler* masm) { | 546 void ArgumentsAccessStub::Generate(MacroAssembler* masm) { |
| 546 switch (type_) { | 547 switch (type_) { |
| 547 case READ_LENGTH: GenerateReadLength(masm); break; | 548 case READ_LENGTH: GenerateReadLength(masm); break; |
| 548 case READ_ELEMENT: GenerateReadElement(masm); break; | 549 case READ_ELEMENT: GenerateReadElement(masm); break; |
| 549 case NEW_OBJECT: GenerateNewObject(masm); break; | 550 case NEW_OBJECT: GenerateNewObject(masm); break; |
| 550 } | 551 } |
| 551 } | 552 } |
| 552 | 553 |
| 553 | 554 |
| 554 } } // namespace v8::internal | 555 } } // namespace v8::internal |
| OLD | NEW |