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

Side by Side Diff: src/bootstrapper.cc

Issue 446023002: Enable ES6 iteration by default (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Moved tests to es6, fixed duplicate ExtendArrayPrototype name in unscopables.js 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 | « BUILD.gn ('k') | src/flag-definitions.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 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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 } 114 }
115 delete_these_arrays_on_tear_down_->Add(memory); 115 delete_these_arrays_on_tear_down_->Add(memory);
116 } 116 }
117 return memory; 117 return memory;
118 } 118 }
119 119
120 120
121 void Bootstrapper::TearDown() { 121 void Bootstrapper::TearDown() {
122 if (delete_these_non_arrays_on_tear_down_ != NULL) { 122 if (delete_these_non_arrays_on_tear_down_ != NULL) {
123 int len = delete_these_non_arrays_on_tear_down_->length(); 123 int len = delete_these_non_arrays_on_tear_down_->length();
124 DCHECK(len < 25); // Don't use this mechanism for unbounded allocations. 124 DCHECK(len < 27); // Don't use this mechanism for unbounded allocations.
125 for (int i = 0; i < len; i++) { 125 for (int i = 0; i < len; i++) {
126 delete delete_these_non_arrays_on_tear_down_->at(i); 126 delete delete_these_non_arrays_on_tear_down_->at(i);
127 delete_these_non_arrays_on_tear_down_->at(i) = NULL; 127 delete_these_non_arrays_on_tear_down_->at(i) = NULL;
128 } 128 }
129 delete delete_these_non_arrays_on_tear_down_; 129 delete delete_these_non_arrays_on_tear_down_;
130 delete_these_non_arrays_on_tear_down_ = NULL; 130 delete_these_non_arrays_on_tear_down_ = NULL;
131 } 131 }
132 132
133 if (delete_these_arrays_on_tear_down_ != NULL) { 133 if (delete_these_arrays_on_tear_down_ != NULL) {
134 int len = delete_these_arrays_on_tear_down_->length(); 134 int len = delete_these_arrays_on_tear_down_->length();
(...skipping 1918 matching lines...) Expand 10 before | Expand all | Expand 10 after
2053 if (!CompileExperimentalBuiltin(isolate(), i)) return false; \ 2053 if (!CompileExperimentalBuiltin(isolate(), i)) return false; \
2054 } 2054 }
2055 2055
2056 2056
2057 bool Genesis::InstallExperimentalNatives() { 2057 bool Genesis::InstallExperimentalNatives() {
2058 for (int i = ExperimentalNatives::GetDebuggerCount(); 2058 for (int i = ExperimentalNatives::GetDebuggerCount();
2059 i < ExperimentalNatives::GetBuiltinsCount(); 2059 i < ExperimentalNatives::GetBuiltinsCount();
2060 i++) { 2060 i++) {
2061 INSTALL_EXPERIMENTAL_NATIVE(i, proxies, "proxy.js") 2061 INSTALL_EXPERIMENTAL_NATIVE(i, proxies, "proxy.js")
2062 INSTALL_EXPERIMENTAL_NATIVE(i, generators, "generator.js") 2062 INSTALL_EXPERIMENTAL_NATIVE(i, generators, "generator.js")
2063 INSTALL_EXPERIMENTAL_NATIVE(i, iteration, "array-iterator.js")
2064 INSTALL_EXPERIMENTAL_NATIVE(i, iteration, "string-iterator.js")
2065 INSTALL_EXPERIMENTAL_NATIVE(i, strings, "harmony-string.js") 2063 INSTALL_EXPERIMENTAL_NATIVE(i, strings, "harmony-string.js")
2066 INSTALL_EXPERIMENTAL_NATIVE(i, arrays, "harmony-array.js") 2064 INSTALL_EXPERIMENTAL_NATIVE(i, arrays, "harmony-array.js")
2067 INSTALL_EXPERIMENTAL_NATIVE(i, unscopables, "unscopables.js") 2065 INSTALL_EXPERIMENTAL_NATIVE(i, unscopables, "unscopables.js")
2068 } 2066 }
2069 2067
2070 InstallExperimentalNativeFunctions(); 2068 InstallExperimentalNativeFunctions();
2071 return true; 2069 return true;
2072 } 2070 }
2073 2071
2074 2072
(...skipping 620 matching lines...) Expand 10 before | Expand all | Expand 10 after
2695 return from + sizeof(NestingCounterType); 2693 return from + sizeof(NestingCounterType);
2696 } 2694 }
2697 2695
2698 2696
2699 // Called when the top-level V8 mutex is destroyed. 2697 // Called when the top-level V8 mutex is destroyed.
2700 void Bootstrapper::FreeThreadResources() { 2698 void Bootstrapper::FreeThreadResources() {
2701 DCHECK(!IsActive()); 2699 DCHECK(!IsActive());
2702 } 2700 }
2703 2701
2704 } } // namespace v8::internal 2702 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | src/flag-definitions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698