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

Side by Side Diff: src/runtime.cc

Issue 10093007: MIPS: Do the qNaN fixup at de-serialization time. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 8 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
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 8388 matching lines...) Expand 10 before | Expand all | Expand 10 after
8399 } 8399 }
8400 } 8400 }
8401 8401
8402 8402
8403 RUNTIME_FUNCTION(MaybeObject*, Runtime_CheckIsBootstrapping) { 8403 RUNTIME_FUNCTION(MaybeObject*, Runtime_CheckIsBootstrapping) {
8404 RUNTIME_ASSERT(isolate->bootstrapper()->IsActive()); 8404 RUNTIME_ASSERT(isolate->bootstrapper()->IsActive());
8405 return isolate->heap()->undefined_value(); 8405 return isolate->heap()->undefined_value();
8406 } 8406 }
8407 8407
8408 8408
8409 RUNTIME_FUNCTION(MaybeObject*, Runtime_GetRootNan) {
8410 RUNTIME_ASSERT(isolate->bootstrapper()->IsActive());
8411 return isolate->heap()->nan_value();
8412 }
8413
8414
8409 RUNTIME_FUNCTION(MaybeObject*, Runtime_Call) { 8415 RUNTIME_FUNCTION(MaybeObject*, Runtime_Call) {
8410 HandleScope scope(isolate); 8416 HandleScope scope(isolate);
8411 ASSERT(args.length() >= 2); 8417 ASSERT(args.length() >= 2);
8412 int argc = args.length() - 2; 8418 int argc = args.length() - 2;
8413 CONVERT_ARG_CHECKED(JSReceiver, fun, argc + 1); 8419 CONVERT_ARG_CHECKED(JSReceiver, fun, argc + 1);
8414 Object* receiver = args[0]; 8420 Object* receiver = args[0];
8415 8421
8416 // If there are too many arguments, allocate argv via malloc. 8422 // If there are too many arguments, allocate argv via malloc.
8417 const int argv_small_size = 10; 8423 const int argv_small_size = 10;
8418 Handle<Object> argv_small_buffer[argv_small_size]; 8424 Handle<Object> argv_small_buffer[argv_small_size];
(...skipping 4935 matching lines...) Expand 10 before | Expand all | Expand 10 after
13354 // Handle last resort GC and make sure to allow future allocations 13360 // Handle last resort GC and make sure to allow future allocations
13355 // to grow the heap without causing GCs (if possible). 13361 // to grow the heap without causing GCs (if possible).
13356 isolate->counters()->gc_last_resort_from_js()->Increment(); 13362 isolate->counters()->gc_last_resort_from_js()->Increment();
13357 isolate->heap()->CollectAllGarbage(Heap::kNoGCFlags, 13363 isolate->heap()->CollectAllGarbage(Heap::kNoGCFlags,
13358 "Runtime::PerformGC"); 13364 "Runtime::PerformGC");
13359 } 13365 }
13360 } 13366 }
13361 13367
13362 13368
13363 } } // namespace v8::internal 13369 } } // namespace v8::internal
OLDNEW
« src/isolate.cc ('K') | « src/runtime.h ('k') | src/runtime.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698