Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Side by Side Diff: src/codegen.cc

Issue 77035: Add ENABLE_DEBUGGER_SUPPORT macro.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 Factory::NewFunctionBoilerplate(node->name(), 297 Factory::NewFunctionBoilerplate(node->name(),
298 node->materialized_literal_count(), 298 node->materialized_literal_count(),
299 node->contains_array_literal(), 299 node->contains_array_literal(),
300 code); 300 code);
301 CodeGenerator::SetFunctionInfo(function, node->num_parameters(), 301 CodeGenerator::SetFunctionInfo(function, node->num_parameters(),
302 node->function_token_position(), 302 node->function_token_position(),
303 node->start_position(), node->end_position(), 303 node->start_position(), node->end_position(),
304 node->is_expression(), false, script_, 304 node->is_expression(), false, script_,
305 node->inferred_name()); 305 node->inferred_name());
306 306
307 #ifdef ENABLE_DEBUGGER_SUPPORT
307 // Notify debugger that a new function has been added. 308 // Notify debugger that a new function has been added.
308 Debugger::OnNewFunction(function); 309 Debugger::OnNewFunction(function);
310 #endif
309 311
310 // Set the expected number of properties for instances and return 312 // Set the expected number of properties for instances and return
311 // the resulting function. 313 // the resulting function.
312 SetExpectedNofPropertiesFromEstimate(function, 314 SetExpectedNofPropertiesFromEstimate(function,
313 node->expected_property_count()); 315 node->expected_property_count());
314 return function; 316 return function;
315 } 317 }
316 318
317 319
318 Handle<Code> CodeGenerator::ComputeCallInitialize(int argc) { 320 Handle<Code> CodeGenerator::ComputeCallInitialize(int argc) {
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
613 void ArgumentsAccessStub::Generate(MacroAssembler* masm) { 615 void ArgumentsAccessStub::Generate(MacroAssembler* masm) {
614 switch (type_) { 616 switch (type_) {
615 case READ_LENGTH: GenerateReadLength(masm); break; 617 case READ_LENGTH: GenerateReadLength(masm); break;
616 case READ_ELEMENT: GenerateReadElement(masm); break; 618 case READ_ELEMENT: GenerateReadElement(masm); break;
617 case NEW_OBJECT: GenerateNewObject(masm); break; 619 case NEW_OBJECT: GenerateNewObject(masm); break;
618 } 620 }
619 } 621 }
620 622
621 623
622 } } // namespace v8::internal 624 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/builtins-ia32.cc ('k') | src/codegen-arm.cc » ('j') | src/serialize.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698