Created
May 6, 2013 16:42
-
-
Save annulen/5526302 to your computer and use it in GitHub Desktop.
Miscompiled with pathCC -O3, OK with pathCC -O2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace v8 | |
{ | |
template < class T > class Handle | |
{ | |
T *val_; | |
}; | |
class HandleScope | |
{ | |
public: | |
HandleScope (); | |
~HandleScope (); | |
int isolate_; | |
int *prev_next_; | |
int *prev_limit_; | |
bool is_closed_; | |
}; | |
class Value | |
{ | |
}; | |
class String:Value | |
{ | |
public: | |
class Utf8Value | |
{ | |
public: | |
Utf8Value (Handle < v8::Value >); | |
~Utf8Value (); | |
int *operator* (); | |
int *str_; | |
int length_; | |
}; | |
}; | |
class Arguments | |
{ | |
public: | |
Handle < Value > operator[] (int) const; | |
}; | |
Handle < Value > Undefined (); | |
} | |
class PrintExtension | |
{ | |
static v8::Handle < v8::Value > Print (const v8::Arguments &); | |
}; | |
v8::Handle < v8::Value > PrintExtension::Print (const v8::Arguments & p1) | |
{ | |
{ | |
v8::HandleScope a; | |
v8::String::Utf8Value b (p1[0]); | |
if (*b == 0) | |
return v8::Undefined (); | |
} | |
return v8::Undefined (); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment