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

Side by Side Diff: src/runtime/runtime-function.cc

Issue 1309883002: Get rid of CompilationInfo::GenerateCodeStub method. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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
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/runtime/runtime-utils.h" 5 #include "src/runtime/runtime-utils.h"
6 6
7 #include "src/accessors.h" 7 #include "src/accessors.h"
8 #include "src/arguments.h" 8 #include "src/arguments.h"
9 #include "src/compiler.h" 9 #include "src/compiler.h"
10 #include "src/cpu-profiler.h" 10 #include "src/cpu-profiler.h"
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 HandleScope scope(isolate); 208 HandleScope scope(isolate);
209 DCHECK(args.length() == 2); 209 DCHECK(args.length() == 2);
210 210
211 CONVERT_ARG_HANDLE_CHECKED(JSFunction, target, 0); 211 CONVERT_ARG_HANDLE_CHECKED(JSFunction, target, 0);
212 CONVERT_ARG_HANDLE_CHECKED(JSFunction, source, 1); 212 CONVERT_ARG_HANDLE_CHECKED(JSFunction, source, 1);
213 213
214 Handle<SharedFunctionInfo> target_shared(target->shared()); 214 Handle<SharedFunctionInfo> target_shared(target->shared());
215 Handle<SharedFunctionInfo> source_shared(source->shared()); 215 Handle<SharedFunctionInfo> source_shared(source->shared());
216 RUNTIME_ASSERT(!source_shared->bound()); 216 RUNTIME_ASSERT(!source_shared->bound());
217 217
218 if (!Compiler::EnsureCompiled(source, KEEP_EXCEPTION)) { 218 if (!Compiler::Compile(source, KEEP_EXCEPTION)) {
219 return isolate->heap()->exception(); 219 return isolate->heap()->exception();
220 } 220 }
221 221
222 // Mark both, the source and the target, as un-flushable because the 222 // Mark both, the source and the target, as un-flushable because the
223 // shared unoptimized code makes them impossible to enqueue in a list. 223 // shared unoptimized code makes them impossible to enqueue in a list.
224 DCHECK(target_shared->code()->gc_metadata() == NULL); 224 DCHECK(target_shared->code()->gc_metadata() == NULL);
225 DCHECK(source_shared->code()->gc_metadata() == NULL); 225 DCHECK(source_shared->code()->gc_metadata() == NULL);
226 target_shared->set_dont_flush(true); 226 target_shared->set_dont_flush(true);
227 source_shared->set_dont_flush(true); 227 source_shared->set_dont_flush(true);
228 228
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after
648 648
649 649
650 RUNTIME_FUNCTION(Runtime_ThrowStrongModeTooFewArguments) { 650 RUNTIME_FUNCTION(Runtime_ThrowStrongModeTooFewArguments) {
651 HandleScope scope(isolate); 651 HandleScope scope(isolate);
652 DCHECK(args.length() == 0); 652 DCHECK(args.length() == 0);
653 THROW_NEW_ERROR_RETURN_FAILURE(isolate, 653 THROW_NEW_ERROR_RETURN_FAILURE(isolate,
654 NewTypeError(MessageTemplate::kStrongArity)); 654 NewTypeError(MessageTemplate::kStrongArity));
655 } 655 }
656 } // namespace internal 656 } // namespace internal
657 } // namespace v8 657 } // namespace v8
OLDNEW
« src/compiler.h ('K') | « src/debug/debug.cc ('k') | src/runtime/runtime-object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698