Clang compatibility changes. This is a commit of http://codereview.chromium.org/3364002 for coldredlemur

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@5402 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
erik.corry@gmail.com 2010-09-02 10:18:44 +00:00
parent 76e3e2afbb
commit 2b1e4560e7
4 changed files with 5 additions and 5 deletions

View File

@ -1747,7 +1747,7 @@ class RegExpText: public RegExpTree {
void AddElement(TextElement elm) {
elements_.Add(elm);
length_ += elm.length();
};
}
ZoneList<TextElement>* elements() { return &elements_; }
private:
ZoneList<TextElement> elements_;

View File

@ -110,10 +110,10 @@ class CodeStub BASE_EMBEDDED {
static Major MajorKeyFromKey(uint32_t key) {
return static_cast<Major>(MajorKeyBits::decode(key));
};
}
static int MinorKeyFromKey(uint32_t key) {
return MinorKeyBits::decode(key);
};
}
// Gets the major key from a code object that is a code stub or binary op IC.
static Major GetMajorKey(Code* code_stub) {

View File

@ -283,7 +283,7 @@ DEFINE_bool(remote_debugger, false, "Connect JavaScript debugger to the "
"debugger agent in another process")
DEFINE_bool(debugger_agent, false, "Enable debugger agent")
DEFINE_int(debugger_port, 5858, "Port to use for remote debugging")
DEFINE_string(map_counters, false, "Map counters to a file")
DEFINE_string(map_counters, NULL, "Map counters to a file")
DEFINE_args(js_arguments, JSArguments(),
"Pass all remaining arguments to the script. Alias for \"--\".")

View File

@ -302,7 +302,7 @@ class VirtualMemory {
void* address() {
ASSERT(IsReserved());
return address_;
};
}
// Returns the size of the reserved memory.
size_t size() { return size_; }