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 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
248 Handle<Script> script) { | 248 Handle<Script> script) { |
249 fun->shared()->set_length(lit->num_parameters()); | 249 fun->shared()->set_length(lit->num_parameters()); |
250 fun->shared()->set_formal_parameter_count(lit->num_parameters()); | 250 fun->shared()->set_formal_parameter_count(lit->num_parameters()); |
251 fun->shared()->set_script(*script); | 251 fun->shared()->set_script(*script); |
252 fun->shared()->set_function_token_position(lit->function_token_position()); | 252 fun->shared()->set_function_token_position(lit->function_token_position()); |
253 fun->shared()->set_start_position(lit->start_position()); | 253 fun->shared()->set_start_position(lit->start_position()); |
254 fun->shared()->set_end_position(lit->end_position()); | 254 fun->shared()->set_end_position(lit->end_position()); |
255 fun->shared()->set_is_expression(lit->is_expression()); | 255 fun->shared()->set_is_expression(lit->is_expression()); |
256 fun->shared()->set_is_toplevel(is_toplevel); | 256 fun->shared()->set_is_toplevel(is_toplevel); |
257 fun->shared()->set_inferred_name(*lit->inferred_name()); | 257 fun->shared()->set_inferred_name(*lit->inferred_name()); |
| 258 fun->shared()->SetThisPropertyAssignmentsInfo( |
| 259 lit->has_only_this_property_assignments(), |
| 260 lit->has_only_simple_this_property_assignments(), |
| 261 *lit->this_property_assignments()); |
258 } | 262 } |
259 | 263 |
260 | 264 |
261 static Handle<Code> ComputeLazyCompile(int argc) { | 265 static Handle<Code> ComputeLazyCompile(int argc) { |
262 CALL_HEAP_FUNCTION(StubCache::ComputeLazyCompile(argc), Code); | 266 CALL_HEAP_FUNCTION(StubCache::ComputeLazyCompile(argc), Code); |
263 } | 267 } |
264 | 268 |
265 | 269 |
266 Handle<JSFunction> CodeGenerator::BuildBoilerplate(FunctionLiteral* node) { | 270 Handle<JSFunction> CodeGenerator::BuildBoilerplate(FunctionLiteral* node) { |
267 #ifdef DEBUG | 271 #ifdef DEBUG |
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
520 void ArgumentsAccessStub::Generate(MacroAssembler* masm) { | 524 void ArgumentsAccessStub::Generate(MacroAssembler* masm) { |
521 switch (type_) { | 525 switch (type_) { |
522 case READ_LENGTH: GenerateReadLength(masm); break; | 526 case READ_LENGTH: GenerateReadLength(masm); break; |
523 case READ_ELEMENT: GenerateReadElement(masm); break; | 527 case READ_ELEMENT: GenerateReadElement(masm); break; |
524 case NEW_OBJECT: GenerateNewObject(masm); break; | 528 case NEW_OBJECT: GenerateNewObject(masm); break; |
525 } | 529 } |
526 } | 530 } |
527 | 531 |
528 | 532 |
529 } } // namespace v8::internal | 533 } } // namespace v8::internal |
OLD | NEW |