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

Side by Side Diff: test/cctest/compiler/code-assembler-tester.h

Issue 2575473002: [interpreter][stubs] Enable graph verification for bytecode handlers and stubs included into snapsh… (Closed)
Patch Set: Addressing comments Created 4 years 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/interpreter/interpreter.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 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/compiler/code-assembler.h" 5 #include "src/compiler/code-assembler.h"
6 #include "src/handles.h" 6 #include "src/handles.h"
7 #include "src/interface-descriptors.h" 7 #include "src/interface-descriptors.h"
8 #include "src/isolate.h" 8 #include "src/isolate.h"
9 #include "test/cctest/compiler/function-tester.h" 9 #include "test/cctest/compiler/function-tester.h"
10 10
(...skipping 23 matching lines...) Expand all
34 CodeAssemblerTester(Isolate* isolate, Code::Flags flags) 34 CodeAssemblerTester(Isolate* isolate, Code::Flags flags)
35 : zone_(isolate->allocator(), ZONE_NAME), 35 : zone_(isolate->allocator(), ZONE_NAME),
36 scope_(isolate), 36 scope_(isolate),
37 state_(isolate, &zone_, 0, flags, "test") {} 37 state_(isolate, &zone_, 0, flags, "test") {}
38 38
39 CodeAssemblerState* state() { return &state_; } 39 CodeAssemblerState* state() { return &state_; }
40 40
41 Handle<Code> GenerateCode() { return CodeAssembler::GenerateCode(&state_); } 41 Handle<Code> GenerateCode() { return CodeAssembler::GenerateCode(&state_); }
42 42
43 Handle<Code> GenerateCodeCloseAndEscape() { 43 Handle<Code> GenerateCodeCloseAndEscape() {
44 return scope_.CloseAndEscape(CodeAssembler::GenerateCode(&state_)); 44 return scope_.CloseAndEscape(GenerateCode());
45 } 45 }
46 46
47 private: 47 private:
48 Zone zone_; 48 Zone zone_;
49 HandleScope scope_; 49 HandleScope scope_;
50 LocalContext context_; 50 LocalContext context_;
51 CodeAssemblerState state_; 51 CodeAssemblerState state_;
52 }; 52 };
53 53
54 } // namespace compiler 54 } // namespace compiler
55 } // namespace internal 55 } // namespace internal
56 } // namespace v8 56 } // namespace v8
OLDNEW
« no previous file with comments | « src/interpreter/interpreter.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698