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

Side by Side Diff: src/messages.h

Issue 2175233003: Replace SmartPointer<T> with unique_ptr<T> (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@smart-array
Patch Set: Created 4 years, 5 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
OLDNEW
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 // The infrastructure used for (localized) message reporting in V8. 5 // The infrastructure used for (localized) message reporting in V8.
6 // 6 //
7 // Note: there's a big unresolved issue about ownership of the data 7 // Note: there's a big unresolved issue about ownership of the data
8 // structures used by this framework. 8 // structures used by this framework.
9 9
10 #ifndef V8_MESSAGES_H_ 10 #ifndef V8_MESSAGES_H_
11 #define V8_MESSAGES_H_ 11 #define V8_MESSAGES_H_
12 12
13 #include <memory> 13 #include <memory>
14 14
15 #include "src/base/smart-pointers.h"
16 #include "src/handles.h" 15 #include "src/handles.h"
17 #include "src/list.h" 16 #include "src/list.h"
18 17
19 namespace v8 { 18 namespace v8 {
20 namespace internal { 19 namespace internal {
21 20
22 // Forward declarations. 21 // Forward declarations.
23 class JSMessageObject; 22 class JSMessageObject;
24 class LookupIterator; 23 class LookupIterator;
25 class SourceInfo; 24 class SourceInfo;
(...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after
559 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); 558 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data);
560 static std::unique_ptr<char[]> GetLocalizedMessage(Isolate* isolate, 559 static std::unique_ptr<char[]> GetLocalizedMessage(Isolate* isolate,
561 Handle<Object> data); 560 Handle<Object> data);
562 }; 561 };
563 562
564 563
565 } // namespace internal 564 } // namespace internal
566 } // namespace v8 565 } // namespace v8
567 566
568 #endif // V8_MESSAGES_H_ 567 #endif // V8_MESSAGES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698