OLD | NEW |
1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 2009 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 21 matching lines...) Expand all Loading... |
32 #ifndef V8_SHARED | 32 #ifndef V8_SHARED |
33 #include "v8.h" | 33 #include "v8.h" |
34 #include "allocation.h" | 34 #include "allocation.h" |
35 #include "hashmap.h" | 35 #include "hashmap.h" |
36 #else | 36 #else |
37 #include "../include/v8.h" | 37 #include "../include/v8.h" |
38 #endif // V8_SHARED | 38 #endif // V8_SHARED |
39 | 39 |
40 namespace v8 { | 40 namespace v8 { |
41 | 41 |
42 #ifndef V8_SHARED | |
43 namespace i = v8::internal; | |
44 #endif // V8_SHARED | |
45 | |
46 | 42 |
47 #ifndef V8_SHARED | 43 #ifndef V8_SHARED |
48 // A single counter in a counter collection. | 44 // A single counter in a counter collection. |
49 class Counter { | 45 class Counter { |
50 public: | 46 public: |
51 static const int kMaxNameSize = 64; | 47 static const int kMaxNameSize = 64; |
52 int32_t* Bind(const char* name, bool histogram); | 48 int32_t* Bind(const char* name, bool histogram); |
53 int32_t* ptr() { return &count_; } | 49 int32_t* ptr() { return &count_; } |
54 int32_t count() { return count_; } | 50 int32_t count() { return count_; } |
55 int32_t sample_total() { return sample_total_; } | 51 int32_t sample_total() { return sample_total_; } |
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
352 LineEditor* next_; | 348 LineEditor* next_; |
353 static LineEditor* first_; | 349 static LineEditor* first_; |
354 }; | 350 }; |
355 #endif // V8_SHARED | 351 #endif // V8_SHARED |
356 | 352 |
357 | 353 |
358 } // namespace v8 | 354 } // namespace v8 |
359 | 355 |
360 | 356 |
361 #endif // V8_D8_H_ | 357 #endif // V8_D8_H_ |
OLD | NEW |