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

Side by Side Diff: test/cctest/test-typedarrays.cc

Issue 2622503002: include fixing: api.h shouldn't include objects-inl.h (Closed)
Patch Set: static type check Created 3 years, 11 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 | « test/cctest/test-thread-termination.cc ('k') | test/fuzzer/parser.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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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 <stdlib.h> 5 #include <stdlib.h>
6 6
7 #include "src/v8.h" 7 #include "src/v8.h"
8 #include "test/cctest/cctest.h" 8 #include "test/cctest/cctest.h"
9 9
10 #include "src/api.h" 10 #include "src/api.h"
11 #include "src/heap/heap.h" 11 #include "src/heap/heap.h"
12 #include "src/objects-inl.h"
12 #include "src/objects.h" 13 #include "src/objects.h"
13 14
14 using namespace v8::internal; 15 using namespace v8::internal;
15 16
16 void TestArrayBufferViewContents(LocalContext& env, bool should_use_buffer) { 17 void TestArrayBufferViewContents(LocalContext& env, bool should_use_buffer) {
17 v8::Local<v8::Object> obj_a = v8::Local<v8::Object>::Cast( 18 v8::Local<v8::Object> obj_a = v8::Local<v8::Object>::Cast(
18 env->Global() 19 env->Global()
19 ->Get(v8::Isolate::GetCurrent()->GetCurrentContext(), v8_str("a")) 20 ->Get(v8::Isolate::GetCurrent()->GetCurrentContext(), v8_str("a"))
20 .ToLocalChecked()); 21 .ToLocalChecked());
21 CHECK(obj_a->IsArrayBufferView()); 22 CHECK(obj_a->IsArrayBufferView());
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 v8::HandleScope scope(env->GetIsolate()); 76 v8::HandleScope scope(env->GetIsolate());
76 void* memory = reinterpret_cast<Isolate*>(env->GetIsolate()) 77 void* memory = reinterpret_cast<Isolate*>(env->GetIsolate())
77 ->array_buffer_allocator() 78 ->array_buffer_allocator()
78 ->Allocate(1024); 79 ->Allocate(1024);
79 v8::Local<v8::ArrayBuffer> buffer = 80 v8::Local<v8::ArrayBuffer> buffer =
80 v8::ArrayBuffer::New(env->GetIsolate(), memory, 1024, 81 v8::ArrayBuffer::New(env->GetIsolate(), memory, 1024,
81 v8::ArrayBufferCreationMode::kInternalized); 82 v8::ArrayBufferCreationMode::kInternalized);
82 CHECK(!buffer->IsExternal()); 83 CHECK(!buffer->IsExternal());
83 CHECK_EQ(memory, buffer->GetContents().Data()); 84 CHECK_EQ(memory, buffer->GetContents().Data());
84 } 85 }
OLDNEW
« no previous file with comments | « test/cctest/test-thread-termination.cc ('k') | test/fuzzer/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698