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

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

Issue 1512553002: [cctest] Move most heap related tests to test/cctest/heap and clean wrt IWYU (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fixed compile time error due to missing header file Created 5 years 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-alloc.cc ('k') | test/cctest/test-dictionary.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 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 #include "src/base/smart-pointers.h" 43 #include "src/base/smart-pointers.h"
44 #include "src/compilation-cache.h" 44 #include "src/compilation-cache.h"
45 #include "src/debug/debug.h" 45 #include "src/debug/debug.h"
46 #include "src/execution.h" 46 #include "src/execution.h"
47 #include "src/futex-emulation.h" 47 #include "src/futex-emulation.h"
48 #include "src/objects.h" 48 #include "src/objects.h"
49 #include "src/parsing/parser.h" 49 #include "src/parsing/parser.h"
50 #include "src/unicode-inl.h" 50 #include "src/unicode-inl.h"
51 #include "src/utils.h" 51 #include "src/utils.h"
52 #include "src/vm-state.h" 52 #include "src/vm-state.h"
53 #include "test/cctest/heap-tester.h" 53 #include "test/cctest/heap/heap-tester.h"
54 #include "test/cctest/heap/utils-inl.h"
54 55
55 static const bool kLogThreading = false; 56 static const bool kLogThreading = false;
56 57
57 using ::v8::Boolean; 58 using ::v8::Boolean;
58 using ::v8::BooleanObject; 59 using ::v8::BooleanObject;
59 using ::v8::Context; 60 using ::v8::Context;
60 using ::v8::Extension; 61 using ::v8::Extension;
61 using ::v8::Function; 62 using ::v8::Function;
62 using ::v8::FunctionTemplate; 63 using ::v8::FunctionTemplate;
63 using ::v8::HandleScope; 64 using ::v8::HandleScope;
(...skipping 23761 matching lines...) Expand 10 before | Expand all | Expand 10 after
23825 env2->Global()->Set(env2.local(), v8_str("obj2"), object2).FromJust()); 23826 env2->Global()->Set(env2.local(), v8_str("obj2"), object2).FromJust());
23826 ExpectString("typeof obj2.values", "function"); 23827 ExpectString("typeof obj2.values", "function");
23827 CHECK_NE(*object->Get(v8_str("values")), *object2->Get(v8_str("values"))); 23828 CHECK_NE(*object->Get(v8_str("values")), *object2->Get(v8_str("values")));
23828 23829
23829 auto values2 = Local<Function>::Cast(object2->Get(v8_str("values"))); 23830 auto values2 = Local<Function>::Cast(object2->Get(v8_str("values")));
23830 auto fn2 = i::Handle<i::JSFunction>::cast(v8::Utils::OpenHandle(*values2)); 23831 auto fn2 = i::Handle<i::JSFunction>::cast(v8::Utils::OpenHandle(*values2));
23831 auto ctx2 = v8::Utils::OpenHandle(*env2.local()); 23832 auto ctx2 = v8::Utils::OpenHandle(*env2.local());
23832 CHECK_EQ(fn2->GetCreationContext(), *ctx2); 23833 CHECK_EQ(fn2->GetCreationContext(), *ctx2);
23833 } 23834 }
23834 } 23835 }
OLDNEW
« no previous file with comments | « test/cctest/test-alloc.cc ('k') | test/cctest/test-dictionary.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698