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

Unified Diff: test/cctest/test-field-type-tracking.cc

Issue 1368403003: [cctest] adding tests for elements kind map migrations (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: adding file to gyp Created 5 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/cctest/test-elements-kind.cc ('k') | test/cctest/test-migrations.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/test-field-type-tracking.cc
diff --git a/test/cctest/test-migrations.cc b/test/cctest/test-field-type-tracking.cc
similarity index 99%
rename from test/cctest/test-migrations.cc
rename to test/cctest/test-field-type-tracking.cc
index d441990e3c5b17ef4d07b5cda25a5968b8605f5b..fe1170d9b69cb42eab16b6d2ec5b369c06bfe27a 100644
--- a/test/cctest/test-migrations.cc
+++ b/test/cctest/test-field-type-tracking.cc
@@ -5,6 +5,8 @@
#include <stdlib.h>
#include <utility>
+#include "test/cctest/test-api.h"
+
#include "src/v8.h"
#include "src/compilation-cache.h"
@@ -13,7 +15,6 @@
#include "src/global-handles.h"
#include "src/ic/stub-cache.h"
#include "src/macro-assembler.h"
-#include "test/cctest/cctest.h"
using namespace v8::internal;
@@ -286,7 +287,8 @@ class Expectations {
Handle<String> name = MakeName("prop", property_index);
return Map::CopyWithField(map, name, heap_type, attributes, representation,
- INSERT_TRANSITION).ToHandleChecked();
+ INSERT_TRANSITION)
+ .ToHandleChecked();
}
Handle<Map> AddDataConstant(Handle<Map> map, PropertyAttributes attributes,
@@ -297,7 +299,8 @@ class Expectations {
Handle<String> name = MakeName("prop", property_index);
return Map::CopyWithConstant(map, name, value, attributes,
- INSERT_TRANSITION).ToHandleChecked();
+ INSERT_TRANSITION)
+ .ToHandleChecked();
}
Handle<Map> TransitionToDataField(Handle<Map> map,
@@ -1583,7 +1586,8 @@ TEST(ReconfigurePropertySplitMapTransitionsOverflow) {
CHECK(TransitionArray::CanHaveMoreTransitions(map2));
Handle<String> name = MakeName("foo", i);
Map::CopyWithField(map2, name, any_type, NONE, Representation::Smi(),
- INSERT_TRANSITION).ToHandleChecked();
+ INSERT_TRANSITION)
+ .ToHandleChecked();
}
CHECK(!TransitionArray::CanHaveMoreTransitions(map2));
@@ -1751,8 +1755,8 @@ TEST(ElementsKindTransitionFromMapNotOwningDescriptor) {
// ownership.
CHECK(map->owns_descriptors());
Map::CopyWithField(map, MakeString("foo"), any_type, NONE,
- Representation::Smi(),
- INSERT_TRANSITION).ToHandleChecked();
+ Representation::Smi(), INSERT_TRANSITION)
+ .ToHandleChecked();
CHECK(!map->owns_descriptors());
return Map::CopyAsElementsKind(map, DICTIONARY_ELEMENTS,
@@ -1809,8 +1813,8 @@ TEST(ForObservedTransitionFromMapNotOwningDescriptor) {
// ownership.
CHECK(map->owns_descriptors());
Map::CopyWithField(map, MakeString("foo"), any_type, NONE,
- Representation::Smi(),
- INSERT_TRANSITION).ToHandleChecked();
+ Representation::Smi(), INSERT_TRANSITION)
+ .ToHandleChecked();
CHECK(!map->owns_descriptors());
return Map::CopyForObserved(map);
@@ -1886,8 +1890,8 @@ TEST(PrototypeTransitionFromMapNotOwningDescriptor) {
// ownership.
CHECK(map->owns_descriptors());
Map::CopyWithField(map, MakeString("foo"), any_type, NONE,
- Representation::Smi(),
- INSERT_TRANSITION).ToHandleChecked();
+ Representation::Smi(), INSERT_TRANSITION)
+ .ToHandleChecked();
CHECK(!map->owns_descriptors());
return Map::TransitionToPrototype(map, prototype_, REGULAR_PROTOTYPE);
« no previous file with comments | « test/cctest/test-elements-kind.cc ('k') | test/cctest/test-migrations.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698