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

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

Issue 1773653002: [strong] Remove all remainders of strong mode (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Oversight Created 4 years, 9 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/runtime/runtime-function.cc ('k') | src/s390/builtins-s390.cc » ('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 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/arguments.h" 7 #include "src/arguments.h"
8 #include "src/ast/prettyprinter.h" 8 #include "src/ast/prettyprinter.h"
9 #include "src/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/conversions.h" 10 #include "src/conversions.h"
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 RUNTIME_FUNCTION(Runtime_ThrowIteratorResultNotAnObject) { 164 RUNTIME_FUNCTION(Runtime_ThrowIteratorResultNotAnObject) {
165 HandleScope scope(isolate); 165 HandleScope scope(isolate);
166 DCHECK(args.length() == 1); 166 DCHECK(args.length() == 1);
167 CONVERT_ARG_HANDLE_CHECKED(Object, value, 0); 167 CONVERT_ARG_HANDLE_CHECKED(Object, value, 0);
168 THROW_NEW_ERROR_RETURN_FAILURE( 168 THROW_NEW_ERROR_RETURN_FAILURE(
169 isolate, 169 isolate,
170 NewTypeError(MessageTemplate::kIteratorResultNotAnObject, value)); 170 NewTypeError(MessageTemplate::kIteratorResultNotAnObject, value));
171 } 171 }
172 172
173 173
174 RUNTIME_FUNCTION(Runtime_ThrowStrongModeImplicitConversion) {
175 HandleScope scope(isolate);
176 DCHECK(args.length() == 0);
177 THROW_NEW_ERROR_RETURN_FAILURE(
178 isolate, NewTypeError(MessageTemplate::kStrongImplicitConversion));
179 }
180
181
182 RUNTIME_FUNCTION(Runtime_ThrowApplyNonFunction) { 174 RUNTIME_FUNCTION(Runtime_ThrowApplyNonFunction) {
183 HandleScope scope(isolate); 175 HandleScope scope(isolate);
184 DCHECK_EQ(1, args.length()); 176 DCHECK_EQ(1, args.length());
185 CONVERT_ARG_HANDLE_CHECKED(Object, object, 0); 177 CONVERT_ARG_HANDLE_CHECKED(Object, object, 0);
186 Handle<String> type = Object::TypeOf(isolate, object); 178 Handle<String> type = Object::TypeOf(isolate, object);
187 THROW_NEW_ERROR_RETURN_FAILURE( 179 THROW_NEW_ERROR_RETURN_FAILURE(
188 isolate, NewTypeError(MessageTemplate::kApplyNonFunction, object, type)); 180 isolate, NewTypeError(MessageTemplate::kApplyNonFunction, object, type));
189 } 181 }
190 182
191 183
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
483 std::stringstream stats_stream; 475 std::stringstream stats_stream;
484 isolate->counters()->runtime_call_stats()->Print(stats_stream); 476 isolate->counters()->runtime_call_stats()->Print(stats_stream);
485 Handle<String> result = 477 Handle<String> result =
486 isolate->factory()->NewStringFromAsciiChecked(stats_stream.str().c_str()); 478 isolate->factory()->NewStringFromAsciiChecked(stats_stream.str().c_str());
487 isolate->counters()->runtime_call_stats()->Reset(); 479 isolate->counters()->runtime_call_stats()->Reset();
488 return *result; 480 return *result;
489 } 481 }
490 482
491 } // namespace internal 483 } // namespace internal
492 } // namespace v8 484 } // namespace v8
OLDNEW
« no previous file with comments | « src/runtime/runtime-function.cc ('k') | src/s390/builtins-s390.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698