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

Unified Diff: src/runtime/runtime.cc

Issue 622523004: Support for super keyed loads where key is a name. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Correct patch + platform ports + tests Created 6 years, 2 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
Index: src/runtime/runtime.cc
diff --git a/src/runtime/runtime.cc b/src/runtime/runtime.cc
index cf050d33698a576dd675108265687468f28d134f..4851fed599f3ae32137f08b8f913bd8c3c55dcb2 100644
--- a/src/runtime/runtime.cc
+++ b/src/runtime/runtime.cc
@@ -464,7 +464,7 @@ MaybeHandle<Object> Runtime::GetElementOrCharAt(Isolate* isolate,
MUST_USE_RESULT
Igor Sheludko 2014/10/02 09:32:06 Remove MUST_USE_RESULT as it is already in the .h
Dmitry Lomov (no reviews) 2014/10/02 09:54:12 Done.
-static MaybeHandle<Name> ToName(Isolate* isolate, Handle<Object> key) {
+MaybeHandle<Name> Runtime::ToName(Isolate* isolate, Handle<Object> key) {
if (key->IsName()) {
return Handle<Name>::cast(key);
} else {
@@ -1742,23 +1742,6 @@ RUNTIME_FUNCTION(Runtime_ThrowReferenceError) {
}
-RUNTIME_FUNCTION(Runtime_ThrowNonMethodError) {
- HandleScope scope(isolate);
- DCHECK(args.length() == 0);
- THROW_NEW_ERROR_RETURN_FAILURE(
- isolate, NewReferenceError("non_method", HandleVector<Object>(NULL, 0)));
-}
-
-
-RUNTIME_FUNCTION(Runtime_ThrowUnsupportedSuperError) {
- HandleScope scope(isolate);
- DCHECK(args.length() == 0);
- THROW_NEW_ERROR_RETURN_FAILURE(
- isolate,
- NewReferenceError("unsupported_super", HandleVector<Object>(NULL, 0)));
-}
-
-
RUNTIME_FUNCTION(Runtime_PromiseRejectEvent) {
DCHECK(args.length() == 3);
HandleScope scope(isolate);

Powered by Google App Engine
This is Rietveld 408576698