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

Side by Side Diff: src/builtins.cc

Issue 2137203002: [intrinsics] Remove obsolete intrinsics. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Really nuke TO_NAME. Created 4 years, 5 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 | « src/builtins.h ('k') | src/compiler/js-intrinsic-lowering.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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/builtins.h" 5 #include "src/builtins.h"
6 6
7 #include "src/api-arguments.h" 7 #include "src/api-arguments.h"
8 #include "src/api-natives.h" 8 #include "src/api-natives.h"
9 #include "src/api.h" 9 #include "src/api.h"
10 #include "src/base/ieee754.h" 10 #include "src/base/ieee754.h"
(...skipping 4976 matching lines...) Expand 10 before | Expand all | Expand 10 after
4987 // Do not lazily compute eval position for AsyncFunction, as they may not be 4987 // Do not lazily compute eval position for AsyncFunction, as they may not be
4988 // determined after the function is resumed. 4988 // determined after the function is resumed.
4989 Handle<JSFunction> func = Handle<JSFunction>::cast(maybe_func); 4989 Handle<JSFunction> func = Handle<JSFunction>::cast(maybe_func);
4990 Handle<Script> script = handle(Script::cast(func->shared()->script())); 4990 Handle<Script> script = handle(Script::cast(func->shared()->script()));
4991 int position = script->GetEvalPosition(); 4991 int position = script->GetEvalPosition();
4992 USE(position); 4992 USE(position);
4993 4993
4994 return *func; 4994 return *func;
4995 } 4995 }
4996 4996
4997 // ES6 19.1.3.6 Object.prototype.toString 4997 // -----------------------------------------------------------------------------
4998 // ES6 section 19.1 Object Objects
4999
5000 // ES6 section 19.1.3.4 Object.prototype.propertyIsEnumerable ( V )
5001 BUILTIN(ObjectPrototypePropertyIsEnumerable) {
5002 HandleScope scope(isolate);
5003 Handle<JSReceiver> object;
5004 Handle<Name> name;
5005 ASSIGN_RETURN_FAILURE_ON_EXCEPTION(
5006 isolate, name, Object::ToName(isolate, args.atOrUndefined(isolate, 1)));
5007 ASSIGN_RETURN_FAILURE_ON_EXCEPTION(
5008 isolate, object, JSReceiver::ToObject(isolate, args.receiver()));
5009 Maybe<PropertyAttributes> maybe =
5010 JSReceiver::GetOwnPropertyAttributes(object, name);
5011 if (!maybe.IsJust()) return isolate->heap()->exception();
5012 if (maybe.FromJust() == ABSENT) return isolate->heap()->false_value();
5013 return isolate->heap()->ToBoolean((maybe.FromJust() & DONT_ENUM) == 0);
5014 }
5015
5016 // ES6 section 19.1.3.6 Object.prototype.toString
4998 BUILTIN(ObjectProtoToString) { 5017 BUILTIN(ObjectProtoToString) {
4999 HandleScope scope(isolate); 5018 HandleScope scope(isolate);
5000 Handle<Object> object = args.at<Object>(0); 5019 Handle<Object> object = args.at<Object>(0);
5001 RETURN_RESULT_OR_FAILURE(isolate, 5020 RETURN_RESULT_OR_FAILURE(isolate,
5002 Object::ObjectProtoToString(isolate, object)); 5021 Object::ObjectProtoToString(isolate, object));
5003 } 5022 }
5004 5023
5005 // ----------------------------------------------------------------------------- 5024 // -----------------------------------------------------------------------------
5006 // ES6 section 19.4 Symbol Objects 5025 // ES6 section 19.4 Symbol Objects
5007 5026
(...skipping 1740 matching lines...) Expand 10 before | Expand all | Expand 10 after
6748 BUILTIN_LIST_H(DEFINE_BUILTIN_ACCESSOR_H) 6767 BUILTIN_LIST_H(DEFINE_BUILTIN_ACCESSOR_H)
6749 BUILTIN_LIST_DEBUG_A(DEFINE_BUILTIN_ACCESSOR_A) 6768 BUILTIN_LIST_DEBUG_A(DEFINE_BUILTIN_ACCESSOR_A)
6750 #undef DEFINE_BUILTIN_ACCESSOR_C 6769 #undef DEFINE_BUILTIN_ACCESSOR_C
6751 #undef DEFINE_BUILTIN_ACCESSOR_A 6770 #undef DEFINE_BUILTIN_ACCESSOR_A
6752 #undef DEFINE_BUILTIN_ACCESSOR_T 6771 #undef DEFINE_BUILTIN_ACCESSOR_T
6753 #undef DEFINE_BUILTIN_ACCESSOR_S 6772 #undef DEFINE_BUILTIN_ACCESSOR_S
6754 #undef DEFINE_BUILTIN_ACCESSOR_H 6773 #undef DEFINE_BUILTIN_ACCESSOR_H
6755 6774
6756 } // namespace internal 6775 } // namespace internal
6757 } // namespace v8 6776 } // namespace v8
OLDNEW
« no previous file with comments | « src/builtins.h ('k') | src/compiler/js-intrinsic-lowering.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698