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

Side by Side Diff: src/runtime.cc

Issue 183313002: Avoid normalizing global proxy for fuzzing purposes. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | 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 // 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 2460 matching lines...) Expand 10 before | Expand all | Expand 10 after
2471 return *value; 2471 return *value;
2472 } 2472 }
2473 2473
2474 2474
2475 RUNTIME_FUNCTION(MaybeObject*, 2475 RUNTIME_FUNCTION(MaybeObject*,
2476 Runtime_OptimizeObjectForAddingMultipleProperties) { 2476 Runtime_OptimizeObjectForAddingMultipleProperties) {
2477 HandleScope scope(isolate); 2477 HandleScope scope(isolate);
2478 ASSERT(args.length() == 2); 2478 ASSERT(args.length() == 2);
2479 CONVERT_ARG_HANDLE_CHECKED(JSObject, object, 0); 2479 CONVERT_ARG_HANDLE_CHECKED(JSObject, object, 0);
2480 CONVERT_SMI_ARG_CHECKED(properties, 1); 2480 CONVERT_SMI_ARG_CHECKED(properties, 1);
2481 if (object->HasFastProperties()) { 2481 if (object->HasFastProperties() && !object->IsJSGlobalProxy()) {
2482 JSObject::NormalizeProperties(object, KEEP_INOBJECT_PROPERTIES, properties); 2482 JSObject::NormalizeProperties(object, KEEP_INOBJECT_PROPERTIES, properties);
2483 } 2483 }
2484 return *object; 2484 return *object;
2485 } 2485 }
2486 2486
2487 2487
2488 RUNTIME_FUNCTION(MaybeObject*, Runtime_RegExpExec) { 2488 RUNTIME_FUNCTION(MaybeObject*, Runtime_RegExpExec) {
2489 HandleScope scope(isolate); 2489 HandleScope scope(isolate);
2490 ASSERT(args.length() == 4); 2490 ASSERT(args.length() == 4);
2491 CONVERT_ARG_HANDLE_CHECKED(JSRegExp, regexp, 0); 2491 CONVERT_ARG_HANDLE_CHECKED(JSRegExp, regexp, 0);
(...skipping 12473 matching lines...) Expand 10 before | Expand all | Expand 10 after
14965 // Handle last resort GC and make sure to allow future allocations 14965 // Handle last resort GC and make sure to allow future allocations
14966 // to grow the heap without causing GCs (if possible). 14966 // to grow the heap without causing GCs (if possible).
14967 isolate->counters()->gc_last_resort_from_js()->Increment(); 14967 isolate->counters()->gc_last_resort_from_js()->Increment();
14968 isolate->heap()->CollectAllGarbage(Heap::kNoGCFlags, 14968 isolate->heap()->CollectAllGarbage(Heap::kNoGCFlags,
14969 "Runtime::PerformGC"); 14969 "Runtime::PerformGC");
14970 } 14970 }
14971 } 14971 }
14972 14972
14973 14973
14974 } } // namespace v8::internal 14974 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698