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 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
299 if (code.is_null()) { | 299 if (code.is_null()) { |
300 SetStackOverflow(); | 300 SetStackOverflow(); |
301 return Handle<JSFunction>::null(); | 301 return Handle<JSFunction>::null(); |
302 } | 302 } |
303 | 303 |
304 // Function compilation complete. | 304 // Function compilation complete. |
305 LOG(CodeCreateEvent(Logger::FUNCTION_TAG, *code, *node->name())); | 305 LOG(CodeCreateEvent(Logger::FUNCTION_TAG, *code, *node->name())); |
306 | 306 |
307 #ifdef ENABLE_OPROFILE_AGENT | 307 #ifdef ENABLE_OPROFILE_AGENT |
308 OProfileAgent::CreateNativeCodeRegion(*node->name(), | 308 OProfileAgent::CreateNativeCodeRegion(*node->name(), |
309 code->address(), | 309 code->instruction_start(), |
310 code->ExecutableSize()); | 310 code->instruction_size()); |
311 #endif | 311 #endif |
312 } | 312 } |
313 | 313 |
314 // Create a boilerplate function. | 314 // Create a boilerplate function. |
315 Handle<JSFunction> function = | 315 Handle<JSFunction> function = |
316 Factory::NewFunctionBoilerplate(node->name(), | 316 Factory::NewFunctionBoilerplate(node->name(), |
317 node->materialized_literal_count(), | 317 node->materialized_literal_count(), |
318 node->contains_array_literal(), | 318 node->contains_array_literal(), |
319 code); | 319 code); |
320 CodeGenerator::SetFunctionInfo(function, node->num_parameters(), | 320 CodeGenerator::SetFunctionInfo(function, node->num_parameters(), |
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
650 void ArgumentsAccessStub::Generate(MacroAssembler* masm) { | 650 void ArgumentsAccessStub::Generate(MacroAssembler* masm) { |
651 switch (type_) { | 651 switch (type_) { |
652 case READ_LENGTH: GenerateReadLength(masm); break; | 652 case READ_LENGTH: GenerateReadLength(masm); break; |
653 case READ_ELEMENT: GenerateReadElement(masm); break; | 653 case READ_ELEMENT: GenerateReadElement(masm); break; |
654 case NEW_OBJECT: GenerateNewObject(masm); break; | 654 case NEW_OBJECT: GenerateNewObject(masm); break; |
655 } | 655 } |
656 } | 656 } |
657 | 657 |
658 | 658 |
659 } } // namespace v8::internal | 659 } } // namespace v8::internal |
OLD | NEW |