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

Side by Side Diff: src/compiler.h

Issue 2173403002: Replace SmartArrayPointer<T> with unique_ptr<T[]> (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: updates Created 4 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 | « src/codegen.cc ('k') | src/compiler.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 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 #ifndef V8_COMPILER_H_ 5 #ifndef V8_COMPILER_H_
6 #define V8_COMPILER_H_ 6 #define V8_COMPILER_H_
7 7
8 #include <memory>
9
8 #include "src/allocation.h" 10 #include "src/allocation.h"
9 #include "src/ast/ast.h" 11 #include "src/ast/ast.h"
10 #include "src/bailout-reason.h" 12 #include "src/bailout-reason.h"
11 #include "src/compilation-dependencies.h" 13 #include "src/compilation-dependencies.h"
12 #include "src/source-position-table.h" 14 #include "src/source-position-table.h"
13 #include "src/source-position.h" 15 #include "src/source-position.h"
14 #include "src/zone.h" 16 #include "src/zone.h"
15 17
16 namespace v8 { 18 namespace v8 {
17 namespace internal { 19 namespace internal {
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after
420 422
421 typedef std::vector<InlinedFunctionHolder> InlinedFunctionList; 423 typedef std::vector<InlinedFunctionHolder> InlinedFunctionList;
422 InlinedFunctionList const& inlined_functions() const { 424 InlinedFunctionList const& inlined_functions() const {
423 return inlined_functions_; 425 return inlined_functions_;
424 } 426 }
425 427
426 void AddInlinedFunction(Handle<SharedFunctionInfo> inlined_function) { 428 void AddInlinedFunction(Handle<SharedFunctionInfo> inlined_function) {
427 inlined_functions_.push_back(InlinedFunctionHolder(inlined_function)); 429 inlined_functions_.push_back(InlinedFunctionHolder(inlined_function));
428 } 430 }
429 431
430 base::SmartArrayPointer<char> GetDebugName() const; 432 std::unique_ptr<char[]> GetDebugName() const;
431 433
432 Code::Kind output_code_kind() const { 434 Code::Kind output_code_kind() const {
433 return Code::ExtractKindFromFlags(code_flags_); 435 return Code::ExtractKindFromFlags(code_flags_);
434 } 436 }
435 437
436 StackFrame::Type GetOutputStackFrameType() const; 438 StackFrame::Type GetOutputStackFrameType() const;
437 439
438 int GetDeclareGlobalsFlags() const; 440 int GetDeclareGlobalsFlags() const;
439 441
440 SourcePositionTableBuilder::RecordingMode SourcePositionRecordingMode() const; 442 SourcePositionTableBuilder::RecordingMode SourcePositionRecordingMode() const;
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
577 MUST_USE_RESULT Status SetLastStatus(Status status) { 579 MUST_USE_RESULT Status SetLastStatus(Status status) {
578 last_status_ = status; 580 last_status_ = status;
579 return last_status_; 581 return last_status_;
580 } 582 }
581 }; 583 };
582 584
583 } // namespace internal 585 } // namespace internal
584 } // namespace v8 586 } // namespace v8
585 587
586 #endif // V8_COMPILER_H_ 588 #endif // V8_COMPILER_H_
OLDNEW
« no previous file with comments | « src/codegen.cc ('k') | src/compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698