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 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
315 OProfileAgent::CreateNativeCodeRegion(*node->name(), | 315 OProfileAgent::CreateNativeCodeRegion(*node->name(), |
316 code->instruction_start(), | 316 code->instruction_start(), |
317 code->instruction_size()); | 317 code->instruction_size()); |
318 #endif | 318 #endif |
319 } | 319 } |
320 | 320 |
321 // Create a boilerplate function. | 321 // Create a boilerplate function. |
322 Handle<JSFunction> function = | 322 Handle<JSFunction> function = |
323 Factory::NewFunctionBoilerplate(node->name(), | 323 Factory::NewFunctionBoilerplate(node->name(), |
324 node->materialized_literal_count(), | 324 node->materialized_literal_count(), |
325 node->contains_array_literal(), | |
326 code); | 325 code); |
327 CodeGenerator::SetFunctionInfo(function, node, false, script_); | 326 CodeGenerator::SetFunctionInfo(function, node, false, script_); |
328 | 327 |
329 #ifdef ENABLE_DEBUGGER_SUPPORT | 328 #ifdef ENABLE_DEBUGGER_SUPPORT |
330 // Notify debugger that a new function has been added. | 329 // Notify debugger that a new function has been added. |
331 Debugger::OnNewFunction(function); | 330 Debugger::OnNewFunction(function); |
332 #endif | 331 #endif |
333 | 332 |
334 // Set the expected number of properties for instances and return | 333 // Set the expected number of properties for instances and return |
335 // the resulting function. | 334 // the resulting function. |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
542 void ArgumentsAccessStub::Generate(MacroAssembler* masm) { | 541 void ArgumentsAccessStub::Generate(MacroAssembler* masm) { |
543 switch (type_) { | 542 switch (type_) { |
544 case READ_LENGTH: GenerateReadLength(masm); break; | 543 case READ_LENGTH: GenerateReadLength(masm); break; |
545 case READ_ELEMENT: GenerateReadElement(masm); break; | 544 case READ_ELEMENT: GenerateReadElement(masm); break; |
546 case NEW_OBJECT: GenerateNewObject(masm); break; | 545 case NEW_OBJECT: GenerateNewObject(masm); break; |
547 } | 546 } |
548 } | 547 } |
549 | 548 |
550 | 549 |
551 } } // namespace v8::internal | 550 } } // namespace v8::internal |
OLD | NEW |