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

Side by Side Diff: src/scopes.cc

Issue 2493002: - Remove [static] from methods in Zone and associated helpers. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/isolates/
Patch Set: '' Created 10 years, 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 24 matching lines...) Expand all
35 namespace internal { 35 namespace internal {
36 36
37 // ---------------------------------------------------------------------------- 37 // ----------------------------------------------------------------------------
38 // A Zone allocator for use with LocalsMap. 38 // A Zone allocator for use with LocalsMap.
39 39
40 class ZoneAllocator: public Allocator { 40 class ZoneAllocator: public Allocator {
41 public: 41 public:
42 /* nothing to do */ 42 /* nothing to do */
43 virtual ~ZoneAllocator() {} 43 virtual ~ZoneAllocator() {}
44 44
45 virtual void* New(size_t size) { return Zone::New(static_cast<int>(size)); } 45 virtual void* New(size_t size) { return ZONE->New(static_cast<int>(size)); }
46 46
47 /* ignored - Zone is freed in one fell swoop */ 47 /* ignored - Zone is freed in one fell swoop */
48 virtual void Delete(void* p) {} 48 virtual void Delete(void* p) {}
49 }; 49 };
50 50
51 51
52 static ZoneAllocator LocalsMapAllocator; 52 static ZoneAllocator LocalsMapAllocator;
53 53
54 54
55 // ---------------------------------------------------------------------------- 55 // ----------------------------------------------------------------------------
(...skipping 897 matching lines...) Expand 10 before | Expand all | Expand 10 after
953 if (num_heap_slots_ == Context::MIN_CONTEXT_SLOTS && 953 if (num_heap_slots_ == Context::MIN_CONTEXT_SLOTS &&
954 !must_have_local_context) { 954 !must_have_local_context) {
955 num_heap_slots_ = 0; 955 num_heap_slots_ = 0;
956 } 956 }
957 957
958 // Allocation done. 958 // Allocation done.
959 ASSERT(num_heap_slots_ == 0 || num_heap_slots_ >= Context::MIN_CONTEXT_SLOTS); 959 ASSERT(num_heap_slots_ == 0 || num_heap_slots_ >= Context::MIN_CONTEXT_SLOTS);
960 } 960 }
961 961
962 } } // namespace v8::internal 962 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698