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:
parent
76e3e2afbb
commit
2b1e4560e7
@ -1747,7 +1747,7 @@ class RegExpText: public RegExpTree {
|
|||||||
void AddElement(TextElement elm) {
|
void AddElement(TextElement elm) {
|
||||||
elements_.Add(elm);
|
elements_.Add(elm);
|
||||||
length_ += elm.length();
|
length_ += elm.length();
|
||||||
};
|
}
|
||||||
ZoneList<TextElement>* elements() { return &elements_; }
|
ZoneList<TextElement>* elements() { return &elements_; }
|
||||||
private:
|
private:
|
||||||
ZoneList<TextElement> elements_;
|
ZoneList<TextElement> elements_;
|
||||||
|
@ -110,10 +110,10 @@ class CodeStub BASE_EMBEDDED {
|
|||||||
|
|
||||||
static Major MajorKeyFromKey(uint32_t key) {
|
static Major MajorKeyFromKey(uint32_t key) {
|
||||||
return static_cast<Major>(MajorKeyBits::decode(key));
|
return static_cast<Major>(MajorKeyBits::decode(key));
|
||||||
};
|
}
|
||||||
static int MinorKeyFromKey(uint32_t key) {
|
static int MinorKeyFromKey(uint32_t key) {
|
||||||
return MinorKeyBits::decode(key);
|
return MinorKeyBits::decode(key);
|
||||||
};
|
}
|
||||||
|
|
||||||
// Gets the major key from a code object that is a code stub or binary op IC.
|
// Gets the major key from a code object that is a code stub or binary op IC.
|
||||||
static Major GetMajorKey(Code* code_stub) {
|
static Major GetMajorKey(Code* code_stub) {
|
||||||
|
@ -283,7 +283,7 @@ DEFINE_bool(remote_debugger, false, "Connect JavaScript debugger to the "
|
|||||||
"debugger agent in another process")
|
"debugger agent in another process")
|
||||||
DEFINE_bool(debugger_agent, false, "Enable debugger agent")
|
DEFINE_bool(debugger_agent, false, "Enable debugger agent")
|
||||||
DEFINE_int(debugger_port, 5858, "Port to use for remote debugging")
|
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(),
|
DEFINE_args(js_arguments, JSArguments(),
|
||||||
"Pass all remaining arguments to the script. Alias for \"--\".")
|
"Pass all remaining arguments to the script. Alias for \"--\".")
|
||||||
|
|
||||||
|
@ -302,7 +302,7 @@ class VirtualMemory {
|
|||||||
void* address() {
|
void* address() {
|
||||||
ASSERT(IsReserved());
|
ASSERT(IsReserved());
|
||||||
return address_;
|
return address_;
|
||||||
};
|
}
|
||||||
|
|
||||||
// Returns the size of the reserved memory.
|
// Returns the size of the reserved memory.
|
||||||
size_t size() { return size_; }
|
size_t size() { return size_; }
|
||||||
|
Loading…
Reference in New Issue
Block a user