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

Side by Side Diff: src/runtime.cc

Issue 11190044: dom-query.html spends ~10% of total time in OSAtomicAdd32Barrier on my Mac (Closed) Base URL: git://github.com/v8/v8.git@master
Patch Set: Created 8 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
« no previous file with comments | « src/objects.cc ('k') | src/stub-cache.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 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 10159 matching lines...) Expand 10 before | Expand all | Expand 10 after
10170 // Return element value from indexed interceptor. 10170 // Return element value from indexed interceptor.
10171 // args[0]: object 10171 // args[0]: object
10172 // args[1]: index 10172 // args[1]: index
10173 RUNTIME_FUNCTION(MaybeObject*, Runtime_DebugIndexedInterceptorElementValue) { 10173 RUNTIME_FUNCTION(MaybeObject*, Runtime_DebugIndexedInterceptorElementValue) {
10174 HandleScope scope(isolate); 10174 HandleScope scope(isolate);
10175 ASSERT(args.length() == 2); 10175 ASSERT(args.length() == 2);
10176 CONVERT_ARG_HANDLE_CHECKED(JSObject, obj, 0); 10176 CONVERT_ARG_HANDLE_CHECKED(JSObject, obj, 0);
10177 RUNTIME_ASSERT(obj->HasIndexedInterceptor()); 10177 RUNTIME_ASSERT(obj->HasIndexedInterceptor());
10178 CONVERT_NUMBER_CHECKED(uint32_t, index, Uint32, args[1]); 10178 CONVERT_NUMBER_CHECKED(uint32_t, index, Uint32, args[1]);
10179 10179
10180 return obj->GetElementWithInterceptor(*obj, index); 10180 return obj->GetElementWithInterceptor(*obj, index, isolate);
10181 } 10181 }
10182 10182
10183 10183
10184 RUNTIME_FUNCTION(MaybeObject*, Runtime_CheckExecutionState) { 10184 RUNTIME_FUNCTION(MaybeObject*, Runtime_CheckExecutionState) {
10185 ASSERT(args.length() >= 1); 10185 ASSERT(args.length() >= 1);
10186 CONVERT_NUMBER_CHECKED(int, break_id, Int32, args[0]); 10186 CONVERT_NUMBER_CHECKED(int, break_id, Int32, args[0]);
10187 // Check that the break id is valid. 10187 // Check that the break id is valid.
10188 if (isolate->debug()->break_id() == 0 || 10188 if (isolate->debug()->break_id() == 0 ||
10189 break_id != isolate->debug()->break_id()) { 10189 break_id != isolate->debug()->break_id()) {
10190 return isolate->Throw( 10190 return isolate->Throw(
(...skipping 3101 matching lines...) Expand 10 before | Expand all | Expand 10 after
13292 // Handle last resort GC and make sure to allow future allocations 13292 // Handle last resort GC and make sure to allow future allocations
13293 // to grow the heap without causing GCs (if possible). 13293 // to grow the heap without causing GCs (if possible).
13294 isolate->counters()->gc_last_resort_from_js()->Increment(); 13294 isolate->counters()->gc_last_resort_from_js()->Increment();
13295 isolate->heap()->CollectAllGarbage(Heap::kNoGCFlags, 13295 isolate->heap()->CollectAllGarbage(Heap::kNoGCFlags,
13296 "Runtime::PerformGC"); 13296 "Runtime::PerformGC");
13297 } 13297 }
13298 } 13298 }
13299 13299
13300 13300
13301 } } // namespace v8::internal 13301 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | src/stub-cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698