Commit 3d7a34b5 authored by mstarzinger's avatar mstarzinger Committed by Commit bot

[heap] Move IdentityMap data structure out of heap.

This data structure uses the public heap API only and is not specific
to any heap internals. It should be usable throughout V8 and inclusion
of the header file should not be restricted.

R=titzer@chromium.org

Review URL: https://codereview.chromium.org/1320503004

Cr-Commit-Position: refs/heads/master@{#30443}
parent 09de997b
...@@ -954,8 +954,6 @@ source_set("v8_base") { ...@@ -954,8 +954,6 @@ source_set("v8_base") {
"src/heap/heap-inl.h", "src/heap/heap-inl.h",
"src/heap/heap.cc", "src/heap/heap.cc",
"src/heap/heap.h", "src/heap/heap.h",
"src/heap/identity-map.cc",
"src/heap/identity-map.h",
"src/heap/incremental-marking.cc", "src/heap/incremental-marking.cc",
"src/heap/incremental-marking.h", "src/heap/incremental-marking.h",
"src/heap/mark-compact-inl.h", "src/heap/mark-compact-inl.h",
...@@ -1043,6 +1041,8 @@ source_set("v8_base") { ...@@ -1043,6 +1041,8 @@ source_set("v8_base") {
"src/ic/ic-compiler.h", "src/ic/ic-compiler.h",
"src/ic/stub-cache.cc", "src/ic/stub-cache.cc",
"src/ic/stub-cache.h", "src/ic/stub-cache.h",
"src/identity-map.cc",
"src/identity-map.h",
"src/interface-descriptors.cc", "src/interface-descriptors.cc",
"src/interface-descriptors.h", "src/interface-descriptors.h",
"src/interpreter/bytecodes.cc", "src/interpreter/bytecodes.cc",
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
#include "src/heap/identity-map.h" #include "src/identity-map.h"
#include "src/heap/heap.h" #include "src/heap/heap.h"
#include "src/zone-containers.h" #include "src/zone-containers.h"
......
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
#ifndef V8_HEAP_IDENTITY_MAP_H_ #ifndef V8_IDENTITY_MAP_H_
#define V8_HEAP_IDENTITY_MAP_H_ #define V8_IDENTITY_MAP_H_
#include "src/handles.h" #include "src/handles.h"
...@@ -95,4 +95,4 @@ class IdentityMap : public IdentityMapBase { ...@@ -95,4 +95,4 @@ class IdentityMap : public IdentityMapBase {
} }
} // namespace v8::internal } // namespace v8::internal
#endif // V8_HEAP_IDENTITY_MAP_H_ #endif // V8_IDENTITY_MAP_H_
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
#include "src/v8.h" #include "src/v8.h"
#include "src/heap/identity-map.h" #include "src/identity-map.h"
#include "src/zone.h" #include "src/zone.h"
#include "test/cctest/cctest.h" #include "test/cctest/cctest.h"
......
...@@ -714,8 +714,6 @@ ...@@ -714,8 +714,6 @@
'../../src/heap/heap-inl.h', '../../src/heap/heap-inl.h',
'../../src/heap/heap.cc', '../../src/heap/heap.cc',
'../../src/heap/heap.h', '../../src/heap/heap.h',
'../../src/heap/identity-map.cc',
'../../src/heap/identity-map.h',
'../../src/heap/incremental-marking-inl.h', '../../src/heap/incremental-marking-inl.h',
'../../src/heap/incremental-marking.cc', '../../src/heap/incremental-marking.cc',
'../../src/heap/incremental-marking.h', '../../src/heap/incremental-marking.h',
...@@ -800,6 +798,8 @@ ...@@ -800,6 +798,8 @@
'../../src/ic/ic.h', '../../src/ic/ic.h',
'../../src/ic/ic-compiler.cc', '../../src/ic/ic-compiler.cc',
'../../src/ic/ic-compiler.h', '../../src/ic/ic-compiler.h',
'../../src/identity-map.cc',
'../../src/identity-map.h',
'../../src/interface-descriptors.cc', '../../src/interface-descriptors.cc',
'../../src/interface-descriptors.h', '../../src/interface-descriptors.h',
'../../src/interpreter/bytecodes.cc', '../../src/interpreter/bytecodes.cc',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment