[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}
This commit is contained in:
mstarzinger 2015-08-28 06:00:59 -07:00 committed by Commit bot
parent 09de997b35
commit 3d7a34b5c7
5 changed files with 9 additions and 9 deletions

View File

@ -954,8 +954,6 @@ source_set("v8_base") {
"src/heap/heap-inl.h",
"src/heap/heap.cc",
"src/heap/heap.h",
"src/heap/identity-map.cc",
"src/heap/identity-map.h",
"src/heap/incremental-marking.cc",
"src/heap/incremental-marking.h",
"src/heap/mark-compact-inl.h",
@ -1043,6 +1041,8 @@ source_set("v8_base") {
"src/ic/ic-compiler.h",
"src/ic/stub-cache.cc",
"src/ic/stub-cache.h",
"src/identity-map.cc",
"src/identity-map.h",
"src/interface-descriptors.cc",
"src/interface-descriptors.h",
"src/interpreter/bytecodes.cc",

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "src/heap/identity-map.h"
#include "src/identity-map.h"
#include "src/heap/heap.h"
#include "src/zone-containers.h"

View File

@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef V8_HEAP_IDENTITY_MAP_H_
#define V8_HEAP_IDENTITY_MAP_H_
#ifndef V8_IDENTITY_MAP_H_
#define V8_IDENTITY_MAP_H_
#include "src/handles.h"
@ -95,4 +95,4 @@ class IdentityMap : public IdentityMapBase {
}
} // namespace v8::internal
#endif // V8_HEAP_IDENTITY_MAP_H_
#endif // V8_IDENTITY_MAP_H_

View File

@ -4,7 +4,7 @@
#include "src/v8.h"
#include "src/heap/identity-map.h"
#include "src/identity-map.h"
#include "src/zone.h"
#include "test/cctest/cctest.h"

View File

@ -714,8 +714,6 @@
'../../src/heap/heap-inl.h',
'../../src/heap/heap.cc',
'../../src/heap/heap.h',
'../../src/heap/identity-map.cc',
'../../src/heap/identity-map.h',
'../../src/heap/incremental-marking-inl.h',
'../../src/heap/incremental-marking.cc',
'../../src/heap/incremental-marking.h',
@ -800,6 +798,8 @@
'../../src/ic/ic.h',
'../../src/ic/ic-compiler.cc',
'../../src/ic/ic-compiler.h',
'../../src/identity-map.cc',
'../../src/identity-map.h',
'../../src/interface-descriptors.cc',
'../../src/interface-descriptors.h',
'../../src/interpreter/bytecodes.cc',