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

Side by Side Diff: src/bootstrapper.cc

Issue 19753: Changed the debugger API to allow only one debug event listener to be registe... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years, 10 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
« no previous file with comments | « src/api.cc ('k') | src/contexts.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 454 matching lines...) Expand 10 before | Expand all | Expand 10 after
465 // global context). 465 // global context).
466 global_context_ = 466 global_context_ =
467 Handle<Context>::cast( 467 Handle<Context>::cast(
468 GlobalHandles::Create(*Factory::NewGlobalContext())); 468 GlobalHandles::Create(*Factory::NewGlobalContext()));
469 Top::set_context(*global_context()); 469 Top::set_context(*global_context());
470 470
471 // Allocate the message listeners object. 471 // Allocate the message listeners object.
472 v8::NeanderArray listeners; 472 v8::NeanderArray listeners;
473 global_context()->set_message_listeners(*listeners.value()); 473 global_context()->set_message_listeners(*listeners.value());
474 474
475 // Allocate the debug event listeners object.
476 v8::NeanderArray debug_event_listeners;
477 global_context()->set_debug_event_listeners(*debug_event_listeners.value());
478
479 // Allocate the map for function instances. 475 // Allocate the map for function instances.
480 Handle<Map> fm = Factory::NewMap(JS_FUNCTION_TYPE, JSFunction::kSize); 476 Handle<Map> fm = Factory::NewMap(JS_FUNCTION_TYPE, JSFunction::kSize);
481 global_context()->set_function_instance_map(*fm); 477 global_context()->set_function_instance_map(*fm);
482 // Please note that the prototype property for function instances must be 478 // Please note that the prototype property for function instances must be
483 // writable. 479 // writable.
484 Handle<DescriptorArray> function_map_descriptors = 480 Handle<DescriptorArray> function_map_descriptors =
485 ComputeFunctionInstanceDescriptor(false, true); 481 ComputeFunctionInstanceDescriptor(false, true);
486 fm->set_instance_descriptors(*function_map_descriptors); 482 fm->set_instance_descriptors(*function_map_descriptors);
487 483
488 // Allocate the function map first and then patch the prototype later 484 // Allocate the function map first and then patch the prototype later
(...skipping 1017 matching lines...) Expand 10 before | Expand all | Expand 10 after
1506 } 1502 }
1507 1503
1508 1504
1509 // Restore statics that are thread local. 1505 // Restore statics that are thread local.
1510 char* Genesis::RestoreState(char* from) { 1506 char* Genesis::RestoreState(char* from) {
1511 current_ = *reinterpret_cast<Genesis**>(from); 1507 current_ = *reinterpret_cast<Genesis**>(from);
1512 return from + sizeof(current_); 1508 return from + sizeof(current_);
1513 } 1509 }
1514 1510
1515 } } // namespace v8::internal 1511 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/contexts.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698