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

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

Issue 619863002: Introduce flag --allocation-site-transitioning Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Removed extra work happening when !transitioning && pretenuring. 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/runtime/runtime.h ('k') | test/cctest/test-heap.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/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/arguments.h" 7 #include "src/arguments.h"
8 #include "src/deoptimizer.h" 8 #include "src/deoptimizer.h"
9 #include "src/full-codegen.h" 9 #include "src/full-codegen.h"
10 #include "src/runtime/runtime.h" 10 #include "src/runtime/runtime.h"
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 SealHandleScope shs(isolate); 259 SealHandleScope shs(isolate);
260 DCHECK(args.length() == 1); 260 DCHECK(args.length() == 1);
261 CONVERT_ARG_CHECKED(String, arg, 0); 261 CONVERT_ARG_CHECKED(String, arg, 0);
262 SmartArrayPointer<char> flags = 262 SmartArrayPointer<char> flags =
263 arg->ToCString(DISALLOW_NULLS, ROBUST_STRING_TRAVERSAL); 263 arg->ToCString(DISALLOW_NULLS, ROBUST_STRING_TRAVERSAL);
264 FlagList::SetFlagsFromString(flags.get(), StrLength(flags.get())); 264 FlagList::SetFlagsFromString(flags.get(), StrLength(flags.get()));
265 return isolate->heap()->undefined_value(); 265 return isolate->heap()->undefined_value();
266 } 266 }
267 267
268 268
269 RUNTIME_FUNCTION(Runtime_HasAllocationSiteTransitioning) {
270 SealHandleScope shs(isolate);
271 DCHECK(args.length() == 0);
272 return Smi::FromInt(FLAG_allocation_site_transitioning);
273 }
274
275
269 RUNTIME_FUNCTION(Runtime_Abort) { 276 RUNTIME_FUNCTION(Runtime_Abort) {
270 SealHandleScope shs(isolate); 277 SealHandleScope shs(isolate);
271 DCHECK(args.length() == 1); 278 DCHECK(args.length() == 1);
272 CONVERT_SMI_ARG_CHECKED(message_id, 0); 279 CONVERT_SMI_ARG_CHECKED(message_id, 0);
273 const char* message = 280 const char* message =
274 GetBailoutReason(static_cast<BailoutReason>(message_id)); 281 GetBailoutReason(static_cast<BailoutReason>(message_id));
275 base::OS::PrintError("abort: %s\n", message); 282 base::OS::PrintError("abort: %s\n", message);
276 isolate->PrintStack(stderr); 283 isolate->PrintStack(stderr);
277 base::OS::Abort(); 284 base::OS::Abort();
278 UNREACHABLE(); 285 UNREACHABLE();
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
438 RUNTIME_FUNCTION(Runtime_HasFixed##Type##Elements) { \ 445 RUNTIME_FUNCTION(Runtime_HasFixed##Type##Elements) { \
439 CONVERT_ARG_CHECKED(JSObject, obj, 0); \ 446 CONVERT_ARG_CHECKED(JSObject, obj, 0); \
440 return isolate->heap()->ToBoolean(obj->HasFixed##Type##Elements()); \ 447 return isolate->heap()->ToBoolean(obj->HasFixed##Type##Elements()); \
441 } 448 }
442 449
443 TYPED_ARRAYS(FIXED_TYPED_ARRAYS_CHECK_RUNTIME_FUNCTION) 450 TYPED_ARRAYS(FIXED_TYPED_ARRAYS_CHECK_RUNTIME_FUNCTION)
444 451
445 #undef FIXED_TYPED_ARRAYS_CHECK_RUNTIME_FUNCTION 452 #undef FIXED_TYPED_ARRAYS_CHECK_RUNTIME_FUNCTION
446 } 453 }
447 } // namespace v8::internal 454 } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/runtime/runtime.h ('k') | test/cctest/test-heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698