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

Side by Side Diff: test/unittests/test-utils.cc

Issue 621863002: [turbofan] Fix lowering of typed loads/stores. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix comment Created 6 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « test/unittests/test-utils.h ('k') | test/unittests/unittests.gyp » ('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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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 "test/unittests/test-utils.h" 5 #include "test/unittests/test-utils.h"
6 6
7 #include "src/isolate-inl.h" 7 #include "src/isolate-inl.h"
8 8
9 namespace v8 { 9 namespace v8 {
10 10
11 std::ostream& operator<<(std::ostream& os, ExternalArrayType type) {
12 switch (type) {
13 case kExternalInt8Array:
14 return os << "ExternalInt8Array";
15 case kExternalUint8Array:
16 return os << "ExternalUint8Array";
17 case kExternalInt16Array:
18 return os << "ExternalInt16Array";
19 case kExternalUint16Array:
20 return os << "ExternalUint16Array";
21 case kExternalInt32Array:
22 return os << "ExternalInt32Array";
23 case kExternalUint32Array:
24 return os << "ExternalUint32Array";
25 case kExternalFloat32Array:
26 return os << "ExternalFloat32Array";
27 case kExternalFloat64Array:
28 return os << "ExternalFloat64Array";
29 case kExternalUint8ClampedArray:
30 return os << "ExternalUint8ClampedArray";
31 }
32 UNREACHABLE();
33 return os;
34 }
35
36
11 // static 37 // static
12 Isolate* TestWithIsolate::isolate_ = NULL; 38 Isolate* TestWithIsolate::isolate_ = NULL;
13 39
14 40
15 TestWithIsolate::TestWithIsolate() 41 TestWithIsolate::TestWithIsolate()
16 : isolate_scope_(isolate()), handle_scope_(isolate()) {} 42 : isolate_scope_(isolate()), handle_scope_(isolate()) {}
17 43
18 44
19 TestWithIsolate::~TestWithIsolate() {} 45 TestWithIsolate::~TestWithIsolate() {}
20 46
(...skipping 28 matching lines...) Expand all
49 TestWithIsolate::~TestWithIsolate() {} 75 TestWithIsolate::~TestWithIsolate() {}
50 76
51 77
52 Factory* TestWithIsolate::factory() const { return isolate()->factory(); } 78 Factory* TestWithIsolate::factory() const { return isolate()->factory(); }
53 79
54 80
55 TestWithZone::~TestWithZone() {} 81 TestWithZone::~TestWithZone() {}
56 82
57 } // namespace internal 83 } // namespace internal
58 } // namespace v8 84 } // namespace v8
OLDNEW
« no previous file with comments | « test/unittests/test-utils.h ('k') | test/unittests/unittests.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698