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

Side by Side Diff: src/code-stubs.cc

Issue 1224623004: Make v8::Handle as "deprecated soon" (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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.cc ('k') | src/debug.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/code-stubs.h" 5 #include "src/code-stubs.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #include "src/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/cpu-profiler.h" 10 #include "src/cpu-profiler.h"
(...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after
461 TraceTransition(old_state, state); 461 TraceTransition(old_state, state);
462 set_sub_minor_key(TypesBits::update(sub_minor_key(), state.ToIntegral())); 462 set_sub_minor_key(TypesBits::update(sub_minor_key(), state.ToIntegral()));
463 } 463 }
464 464
465 465
466 namespace { 466 namespace {
467 467
468 Handle<JSFunction> GetFunction(Isolate* isolate, const char* name) { 468 Handle<JSFunction> GetFunction(Isolate* isolate, const char* name) {
469 v8::ExtensionConfiguration no_extensions; 469 v8::ExtensionConfiguration no_extensions;
470 Handle<Context> ctx = isolate->bootstrapper()->CreateEnvironment( 470 Handle<Context> ctx = isolate->bootstrapper()->CreateEnvironment(
471 MaybeHandle<JSGlobalProxy>(), v8::Handle<v8::ObjectTemplate>(), 471 MaybeHandle<JSGlobalProxy>(), v8::Local<v8::ObjectTemplate>(),
472 &no_extensions); 472 &no_extensions);
473 Handle<JSBuiltinsObject> builtins = handle(ctx->builtins()); 473 Handle<JSBuiltinsObject> builtins = handle(ctx->builtins());
474 MaybeHandle<Object> fun = Object::GetProperty(isolate, builtins, name); 474 MaybeHandle<Object> fun = Object::GetProperty(isolate, builtins, name);
475 Handle<JSFunction> function = Handle<JSFunction>::cast(fun.ToHandleChecked()); 475 Handle<JSFunction> function = Handle<JSFunction>::cast(fun.ToHandleChecked());
476 DCHECK(!function->IsUndefined() && 476 DCHECK(!function->IsUndefined() &&
477 "JavaScript implementation of stub not found"); 477 "JavaScript implementation of stub not found");
478 return function; 478 return function;
479 } 479 }
480 } // namespace 480 } // namespace
481 481
(...skipping 579 matching lines...) Expand 10 before | Expand all | Expand 10 after
1061 1061
1062 if (type->Is(Type::UntaggedPointer())) { 1062 if (type->Is(Type::UntaggedPointer())) {
1063 return Representation::External(); 1063 return Representation::External();
1064 } 1064 }
1065 1065
1066 DCHECK(!type->Is(Type::Untagged())); 1066 DCHECK(!type->Is(Type::Untagged()));
1067 return Representation::Tagged(); 1067 return Representation::Tagged();
1068 } 1068 }
1069 } // namespace internal 1069 } // namespace internal
1070 } // namespace v8 1070 } // namespace v8
OLDNEW
« no previous file with comments | « src/builtins.cc ('k') | src/debug.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698