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

Side by Side Diff: src/d8.h

Issue 7640012: v8: Pick the namespace alias 'i' from v8.h. (Closed) Base URL: git://github.com/v8/v8.git@master
Patch Set: Created 9 years, 4 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 | « no previous file | src/mksnapshot.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 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
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
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_
OLDNEW
« no previous file with comments | « no previous file | src/mksnapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698