Make Clang 3.0 happy about static cast in DoGenerateCode.

R=titzer@chromium.org

Review URL: https://codereview.chromium.org/453973002

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@22998 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent ade23c89
...@@ -251,8 +251,7 @@ Handle<Code> HydrogenCodeStub::GenerateLightweightMissCode() { ...@@ -251,8 +251,7 @@ Handle<Code> HydrogenCodeStub::GenerateLightweightMissCode() {
template <class Stub> template <class Stub>
static Handle<Code> DoGenerateCode(Stub* stub) { static Handle<Code> DoGenerateCode(Stub* stub) {
Isolate* isolate = stub->isolate(); Isolate* isolate = stub->isolate();
CodeStub::Major major_key = CodeStub::Major major_key = static_cast<CodeStub*>(stub)->MajorKey();
static_cast<HydrogenCodeStub*>(stub)->MajorKey();
CodeStubInterfaceDescriptor* descriptor = CodeStubInterfaceDescriptor* descriptor =
isolate->code_stub_interface_descriptor(major_key); isolate->code_stub_interface_descriptor(major_key);
if (!descriptor->IsInitialized()) { if (!descriptor->IsInitialized()) {
......
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