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

Side by Side Diff: src/typing.h

Issue 924453002: Fix invalid use of int in Zone. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Windows again... Created 5 years, 10 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/lithium-allocator.cc ('k') | src/zone.h » ('j') | src/zone.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 #ifndef V8_TYPING_H_ 5 #ifndef V8_TYPING_H_
6 #define V8_TYPING_H_ 6 #define V8_TYPING_H_
7 7
8 #include "src/v8.h" 8 #include "src/v8.h"
9 9
10 #include "src/allocation.h" 10 #include "src/allocation.h"
11 #include "src/ast.h" 11 #include "src/ast.h"
12 #include "src/effects.h" 12 #include "src/effects.h"
13 #include "src/scopes.h" 13 #include "src/scopes.h"
14 #include "src/type-info.h" 14 #include "src/type-info.h"
15 #include "src/types.h" 15 #include "src/types.h"
16 #include "src/zone.h" 16 #include "src/zone.h"
17 17
18 namespace v8 { 18 namespace v8 {
19 namespace internal { 19 namespace internal {
20 20
21 21
22 class AstTyper: public AstVisitor { 22 class AstTyper: public AstVisitor {
23 public: 23 public:
24 static void Run(CompilationInfo* info); 24 static void Run(CompilationInfo* info);
25 25
26 void* operator new(size_t size, Zone* zone) { 26 void* operator new(size_t size, Zone* zone) { return zone->New(size); }
27 return zone->New(static_cast<int>(size));
28 }
29 void operator delete(void* pointer, Zone* zone) { } 27 void operator delete(void* pointer, Zone* zone) { }
30 void operator delete(void* pointer) { } 28 void operator delete(void* pointer) { }
31 29
32 DEFINE_AST_VISITOR_SUBCLASS_MEMBERS(); 30 DEFINE_AST_VISITOR_SUBCLASS_MEMBERS();
33 31
34 private: 32 private:
35 explicit AstTyper(CompilationInfo* info); 33 explicit AstTyper(CompilationInfo* info);
36 34
37 Effect ObservedOnStack(Object* value); 35 Effect ObservedOnStack(Object* value);
38 void ObserveTypesAtOsrEntry(IterationStatement* stmt); 36 void ObserveTypesAtOsrEntry(IterationStatement* stmt);
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 #define DECLARE_VISIT(type) virtual void Visit##type(type* node) OVERRIDE; 75 #define DECLARE_VISIT(type) virtual void Visit##type(type* node) OVERRIDE;
78 AST_NODE_LIST(DECLARE_VISIT) 76 AST_NODE_LIST(DECLARE_VISIT)
79 #undef DECLARE_VISIT 77 #undef DECLARE_VISIT
80 78
81 DISALLOW_COPY_AND_ASSIGN(AstTyper); 79 DISALLOW_COPY_AND_ASSIGN(AstTyper);
82 }; 80 };
83 81
84 } } // namespace v8::internal 82 } } // namespace v8::internal
85 83
86 #endif // V8_TYPING_H_ 84 #endif // V8_TYPING_H_
OLDNEW
« no previous file with comments | « src/lithium-allocator.cc ('k') | src/zone.h » ('j') | src/zone.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698