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

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

Issue 631093003: [turbofan] Fix lowering of typed loads/stores. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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/base/platform/time.h" 7 #include "src/base/platform/time.h"
8 #include "src/flags.h" 8 #include "src/flags.h"
9 #include "src/isolate-inl.h" 9 #include "src/isolate-inl.h"
10 10
11 namespace v8 { 11 namespace v8 {
12 12
13 std::ostream& operator<<(std::ostream& os, ExternalArrayType type) {
14 switch (type) {
15 case kExternalInt8Array:
16 return os << "ExternalInt8Array";
17 case kExternalUint8Array:
18 return os << "ExternalUint8Array";
19 case kExternalInt16Array:
20 return os << "ExternalInt16Array";
21 case kExternalUint16Array:
22 return os << "ExternalUint16Array";
23 case kExternalInt32Array:
24 return os << "ExternalInt32Array";
25 case kExternalUint32Array:
26 return os << "ExternalUint32Array";
27 case kExternalFloat32Array:
28 return os << "ExternalFloat32Array";
29 case kExternalFloat64Array:
30 return os << "ExternalFloat64Array";
31 case kExternalUint8ClampedArray:
32 return os << "ExternalUint8ClampedArray";
33 }
34 UNREACHABLE();
35 return os;
36 }
37
38
13 // static 39 // static
14 Isolate* TestWithIsolate::isolate_ = NULL; 40 Isolate* TestWithIsolate::isolate_ = NULL;
15 41
16 42
17 TestWithIsolate::TestWithIsolate() 43 TestWithIsolate::TestWithIsolate()
18 : isolate_scope_(isolate()), handle_scope_(isolate()) {} 44 : isolate_scope_(isolate()), handle_scope_(isolate()) {}
19 45
20 46
21 TestWithIsolate::~TestWithIsolate() {} 47 TestWithIsolate::~TestWithIsolate() {}
22 48
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 TestWithIsolate::~TestWithIsolate() {} 95 TestWithIsolate::~TestWithIsolate() {}
70 96
71 97
72 Factory* TestWithIsolate::factory() const { return isolate()->factory(); } 98 Factory* TestWithIsolate::factory() const { return isolate()->factory(); }
73 99
74 100
75 TestWithZone::~TestWithZone() {} 101 TestWithZone::~TestWithZone() {}
76 102
77 } // namespace internal 103 } // namespace internal
78 } // namespace v8 104 } // 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