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

Side by Side Diff: src/bootstrapper.cc

Issue 1680513002: [runtime] We don't need an actual instance type for JSIteratorResult. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 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
« no previous file with comments | « no previous file | src/crankshaft/hydrogen.cc » ('j') | src/objects.h » ('J')
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/api-natives.h" 8 #include "src/api-natives.h"
9 #include "src/code-stubs.h" 9 #include "src/code-stubs.h"
10 #include "src/extensions/externalize-string-extension.h" 10 #include "src/extensions/externalize-string-extension.h"
(...skipping 1557 matching lines...) Expand 10 before | Expand all | Expand 10 after
1568 { // -- S e t 1568 { // -- S e t
1569 Handle<JSFunction> js_set_fun = InstallFunction( 1569 Handle<JSFunction> js_set_fun = InstallFunction(
1570 global, "Set", JS_SET_TYPE, JSSet::kSize, 1570 global, "Set", JS_SET_TYPE, JSSet::kSize,
1571 isolate->initial_object_prototype(), Builtins::kIllegal); 1571 isolate->initial_object_prototype(), Builtins::kIllegal);
1572 InstallWithIntrinsicDefaultProto(isolate, js_set_fun, 1572 InstallWithIntrinsicDefaultProto(isolate, js_set_fun,
1573 Context::JS_SET_FUN_INDEX); 1573 Context::JS_SET_FUN_INDEX);
1574 } 1574 }
1575 1575
1576 { // -- I t e r a t o r R e s u l t 1576 { // -- I t e r a t o r R e s u l t
1577 Handle<Map> map = 1577 Handle<Map> map =
1578 factory->NewMap(JS_ITERATOR_RESULT_TYPE, JSIteratorResult::kSize); 1578 factory->NewMap(JS_OBJECT_TYPE, JSIteratorResult::kSize);
1579 Map::SetPrototype(map, isolate->initial_object_prototype()); 1579 Map::SetPrototype(map, isolate->initial_object_prototype());
1580 Map::EnsureDescriptorSlack(map, 2); 1580 Map::EnsureDescriptorSlack(map, 2);
1581 1581
1582 { // value 1582 { // value
1583 DataDescriptor d(factory->value_string(), JSIteratorResult::kValueIndex, 1583 DataDescriptor d(factory->value_string(), JSIteratorResult::kValueIndex,
1584 NONE, Representation::Tagged()); 1584 NONE, Representation::Tagged());
1585 map->AppendDescriptor(&d); 1585 map->AppendDescriptor(&d);
1586 } 1586 }
1587 1587
1588 { // done 1588 { // done
(...skipping 2043 matching lines...) Expand 10 before | Expand all | Expand 10 after
3632 } 3632 }
3633 3633
3634 3634
3635 // Called when the top-level V8 mutex is destroyed. 3635 // Called when the top-level V8 mutex is destroyed.
3636 void Bootstrapper::FreeThreadResources() { 3636 void Bootstrapper::FreeThreadResources() {
3637 DCHECK(!IsActive()); 3637 DCHECK(!IsActive());
3638 } 3638 }
3639 3639
3640 } // namespace internal 3640 } // namespace internal
3641 } // namespace v8 3641 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/crankshaft/hydrogen.cc » ('j') | src/objects.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698