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

Side by Side Diff: src/bootstrapper.cc

Issue 469733002: Rename the configuration flags of the LookupIterator (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 4 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/factory.cc » ('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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/bootstrapper.h" 5 #include "src/bootstrapper.h"
6 6
7 #include "src/accessors.h" 7 #include "src/accessors.h"
8 #include "src/code-stubs.h" 8 #include "src/code-stubs.h"
9 #include "src/extensions/externalize-string-extension.h" 9 #include "src/extensions/externalize-string-extension.h"
10 #include "src/extensions/free-buffer-extension.h" 10 #include "src/extensions/free-buffer-extension.h"
(...skipping 762 matching lines...) Expand 10 before | Expand all | Expand 10 after
773 if (js_global_object_template.is_null()) { 773 if (js_global_object_template.is_null()) {
774 Handle<String> name = Handle<String>(heap()->empty_string()); 774 Handle<String> name = Handle<String>(heap()->empty_string());
775 Handle<Code> code = Handle<Code>(isolate()->builtins()->builtin( 775 Handle<Code> code = Handle<Code>(isolate()->builtins()->builtin(
776 Builtins::kIllegal)); 776 Builtins::kIllegal));
777 Handle<JSObject> prototype = 777 Handle<JSObject> prototype =
778 factory()->NewFunctionPrototype(isolate()->object_function()); 778 factory()->NewFunctionPrototype(isolate()->object_function());
779 js_global_object_function = factory()->NewFunction( 779 js_global_object_function = factory()->NewFunction(
780 name, code, prototype, JS_GLOBAL_OBJECT_TYPE, JSGlobalObject::kSize); 780 name, code, prototype, JS_GLOBAL_OBJECT_TYPE, JSGlobalObject::kSize);
781 #ifdef DEBUG 781 #ifdef DEBUG
782 LookupIterator it(prototype, factory()->constructor_string(), 782 LookupIterator it(prototype, factory()->constructor_string(),
783 LookupIterator::CHECK_OWN_REAL); 783 LookupIterator::CHECK_PROPERTY);
784 Handle<Object> value = JSReceiver::GetProperty(&it).ToHandleChecked(); 784 Handle<Object> value = JSReceiver::GetProperty(&it).ToHandleChecked();
785 DCHECK(it.IsFound()); 785 DCHECK(it.IsFound());
786 DCHECK_EQ(*isolate()->object_function(), *value); 786 DCHECK_EQ(*isolate()->object_function(), *value);
787 #endif 787 #endif
788 } else { 788 } else {
789 Handle<FunctionTemplateInfo> js_global_object_constructor( 789 Handle<FunctionTemplateInfo> js_global_object_constructor(
790 FunctionTemplateInfo::cast(js_global_object_template->constructor())); 790 FunctionTemplateInfo::cast(js_global_object_template->constructor()));
791 js_global_object_function = 791 js_global_object_function =
792 factory()->CreateApiFunction(js_global_object_constructor, 792 factory()->CreateApiFunction(js_global_object_constructor,
793 factory()->the_hole_value(), 793 factory()->the_hole_value(),
(...skipping 1901 matching lines...) Expand 10 before | Expand all | Expand 10 after
2695 return from + sizeof(NestingCounterType); 2695 return from + sizeof(NestingCounterType);
2696 } 2696 }
2697 2697
2698 2698
2699 // Called when the top-level V8 mutex is destroyed. 2699 // Called when the top-level V8 mutex is destroyed.
2700 void Bootstrapper::FreeThreadResources() { 2700 void Bootstrapper::FreeThreadResources() {
2701 DCHECK(!IsActive()); 2701 DCHECK(!IsActive());
2702 } 2702 }
2703 2703
2704 } } // namespace v8::internal 2704 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698