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

Unified Diff: src/builtins/builtins-iterator.cc

Issue 2348493003: [builtins] move String.prototype[@@iterator] to C++ builtin (Closed)
Patch Set: V8 (rebase + fix bytecode expectations) Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/builtins/builtins.h ('k') | src/builtins/builtins-string.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/builtins/builtins-iterator.cc
diff --git a/src/base/file-utils.h b/src/builtins/builtins-iterator.cc
similarity index 54%
copy from src/base/file-utils.h
copy to src/builtins/builtins-iterator.cc
index ce9e9a1c41cb2876f363d5093585cbe3947f402d..7b91e364eb2cfd22517a9157f0a235acc9bdd046 100644
--- a/src/base/file-utils.h
+++ b/src/builtins/builtins-iterator.cc
@@ -2,17 +2,16 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef V8_FILE_UTILS_H_
-#define V8_FILE_UTILS_H_
+#include "src/builtins/builtins.h"
+#include "src/builtins/builtins-utils.h"
namespace v8 {
namespace internal {
-// Helper functions to manipulate file paths.
-
-char* RelativePath(char** buffer, const char* exec_path, const char* name);
+void Builtins::Generate_IteratorPrototypeIterator(
+ CodeStubAssembler* assembler) {
+ assembler->Return(assembler->Parameter(0));
+}
} // namespace internal
} // namespace v8
-
-#endif // V8_FILE_UTILS_H_
« no previous file with comments | « src/builtins/builtins.h ('k') | src/builtins/builtins-string.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698