Fixed a long-standing TODO: Removed a few *-incl.h #includes from isolate.h.

ZoneAllocationPolicy::New is not inlined anymore because this pulls in far too
much stuff and doesn't really make any measurable performance difference. And
no, the #includes are still not in alphabetical order... ;-)
Review URL: http://codereview.chromium.org/7346006

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@8616 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 2ee07e1d
// Copyright 2006-2008 the V8 project authors. All rights reserved.
// Copyright 2011 the V8 project authors. All rights reserved.
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
......@@ -35,6 +35,7 @@
#include "execution.h"
#include "factory.h"
#include "flags.h"
#include "frames-inl.h"
#include "hashmap.h"
#include "platform.h"
#include "string-stream.h"
......
......@@ -36,6 +36,8 @@
#include "scopeinfo.h"
#include "string-stream.h"
#include "allocation-inl.h"
namespace v8 {
namespace internal {
......
......@@ -1356,10 +1356,4 @@ inline void Context::mark_out_of_memory() {
} } // namespace v8::internal
// TODO(isolates): Get rid of these -inl.h includes and place them only where
// they're needed.
#include "allocation-inl.h"
#include "zone-inl.h"
#include "frames-inl.h"
#endif // V8_ISOLATE_H_
......@@ -32,6 +32,8 @@
#include "scopeinfo.h"
#include "scopes.h"
#include "allocation-inl.h"
namespace v8 {
namespace internal {
......
......@@ -34,6 +34,8 @@
#include "prettyprinter.h"
#include "scopeinfo.h"
#include "allocation-inl.h"
namespace v8 {
namespace internal {
......
// Copyright 2006-2008 the V8 project authors. All rights reserved.
// Copyright 2011 the V8 project authors. All rights reserved.
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
......@@ -30,6 +30,8 @@
#include "factory.h"
#include "string-stream.h"
#include "allocation-inl.h"
namespace v8 {
namespace internal {
......
......@@ -30,7 +30,6 @@
#include "allocation.h"
#include "globals.h"
#include "zone.h"
#include "zone-inl.h"
namespace v8 {
......
......@@ -164,7 +164,7 @@ class AssertNoZoneAllocation {
class ZoneListAllocationPolicy {
public:
// Allocate 'size' bytes of memory in the zone.
INLINE(static void* New(int size));
static void* New(int size);
// De-allocation attempts are silently ignored.
static void Delete(void* p) { }
......
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