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

Side by Side Diff: src/extensions/statistics-extension.cc

Issue 1322883002: Make isolate.h usable without objects-inl.h header. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@local_cleanup-includes-frames-2
Patch Set: Rebased. Created 5 years, 3 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/extensions/free-buffer-extension.cc ('k') | src/factory.h » ('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 // 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/extensions/statistics-extension.h" 5 #include "src/extensions/statistics-extension.h"
6 6
7 #include "src/counters.h" 7 #include "src/counters.h"
8 #include "src/heap/heap-inl.h" 8 #include "src/heap/heap-inl.h"
9 #include "src/isolate.h" 9 #include "src/isolate.h"
10 #include "src/objects-inl.h" // TODO(mstarzinger): Temporary cycle breaker!
11 10
12 namespace v8 { 11 namespace v8 {
13 namespace internal { 12 namespace internal {
14 13
15 const char* const StatisticsExtension::kSource = 14 const char* const StatisticsExtension::kSource =
16 "native function getV8Statistics();"; 15 "native function getV8Statistics();";
17 16
18 17
19 v8::Local<v8::FunctionTemplate> StatisticsExtension::GetNativeFunctionTemplate( 18 v8::Local<v8::FunctionTemplate> StatisticsExtension::GetNativeFunctionTemplate(
20 v8::Isolate* isolate, v8::Local<v8::String> str) { 19 v8::Isolate* isolate, v8::Local<v8::String> str) {
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 } 136 }
138 137
139 AddNumber64(args.GetIsolate(), result, 138 AddNumber64(args.GetIsolate(), result,
140 heap->amount_of_external_allocated_memory(), 139 heap->amount_of_external_allocated_memory(),
141 "amount_of_external_allocated_memory"); 140 "amount_of_external_allocated_memory");
142 args.GetReturnValue().Set(result); 141 args.GetReturnValue().Set(result);
143 } 142 }
144 143
145 } // namespace internal 144 } // namespace internal
146 } // namespace v8 145 } // namespace v8
OLDNEW
« no previous file with comments | « src/extensions/free-buffer-extension.cc ('k') | src/factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698