Commit 75003d7e authored by whesse@chromium.org's avatar whesse@chromium.org

Change a TypeInfo function from inline to non-inline, reducing stack usage during code compilation.

Review URL: http://codereview.chromium.org/1369003

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@4297 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent adeb2f43
...@@ -102,6 +102,7 @@ SOURCES = { ...@@ -102,6 +102,7 @@ SOURCES = {
stub-cache.cc stub-cache.cc
token.cc token.cc
top.cc top.cc
type-info.cc
unicode.cc unicode.cc
utils.cc utils.cc
v8-counters.cc v8-counters.cc
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
#ifndef V8_FRAME_ELEMENT_H_ #ifndef V8_FRAME_ELEMENT_H_
#define V8_FRAME_ELEMENT_H_ #define V8_FRAME_ELEMENT_H_
#include "type-info-inl.h" #include "type-info.h"
#include "macro-assembler.h" #include "macro-assembler.h"
#include "zone.h" #include "zone.h"
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
#define V8_REGISTER_ALLOCATOR_H_ #define V8_REGISTER_ALLOCATOR_H_
#include "macro-assembler.h" #include "macro-assembler.h"
#include "type-info-inl.h" #include "type-info.h"
#if V8_TARGET_ARCH_IA32 #if V8_TARGET_ARCH_IA32
#include "ia32/register-allocator-ia32.h" #include "ia32/register-allocator-ia32.h"
......
...@@ -25,9 +25,7 @@ ...@@ -25,9 +25,7 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#ifndef V8_TYPE_INFO_INL_H_ #include "v8.h"
#define V8_TYPE_INFO_INL_H_
#include "type-info.h" #include "type-info.h"
#include "objects-inl.h" #include "objects-inl.h"
...@@ -51,5 +49,3 @@ TypeInfo TypeInfo::TypeFromValue(Handle<Object> value) { ...@@ -51,5 +49,3 @@ TypeInfo TypeInfo::TypeFromValue(Handle<Object> value) {
} } // namespace v8::internal } } // namespace v8::internal
#endif // V8_TYPE_INFO_INL_H_
...@@ -130,7 +130,7 @@ class TypeInfo { ...@@ -130,7 +130,7 @@ class TypeInfo {
return false; return false;
} }
static inline TypeInfo TypeFromValue(Handle<Object> value); static TypeInfo TypeFromValue(Handle<Object> value);
inline bool IsUnknown() { inline bool IsUnknown() {
return type_ == kUnknownType; return type_ == kUnknownType;
......
...@@ -388,7 +388,7 @@ ...@@ -388,7 +388,7 @@
'../../src/token.h', '../../src/token.h',
'../../src/top.cc', '../../src/top.cc',
'../../src/top.h', '../../src/top.h',
'../../src/type-info-inl.h', '../../src/type-info.cc',
'../../src/type-info.h', '../../src/type-info.h',
'../../src/unicode-inl.h', '../../src/unicode-inl.h',
'../../src/unicode.cc', '../../src/unicode.cc',
......
...@@ -945,7 +945,7 @@ ...@@ -945,7 +945,7 @@
> >
</File> </File>
<File <File
RelativePath="..\..\src\type-info-inl.h" RelativePath="..\..\src\type-info.cc"
> >
</File> </File>
<File <File
......
...@@ -937,7 +937,7 @@ ...@@ -937,7 +937,7 @@
> >
</File> </File>
<File <File
RelativePath="..\..\src\type-info-inl.h" RelativePath="..\..\src\type-info.cc"
> >
</File> </File>
<File <File
......
...@@ -922,7 +922,7 @@ ...@@ -922,7 +922,7 @@
> >
</File> </File>
<File <File
RelativePath="..\..\src\type-info-inl.h" RelativePath="..\..\src\type-info.cc"
> >
</File> </File>
<File <File
......
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